(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([ [ 206 ], {
    369: function(e, t, n) {},
    416: function(e, t, n) {},
    417: function(e, t, n) {},
    441: function(e, t, n) {},
    443: function(e, t, n) {},
    444: function(e, t, n) {},
    445: function(e, t, n) {},
    446: function(e, t, n) {},
    447: function(e, t, n) {},
    448: function(e, t, n) {},
    449: function(e, t, n) {},
    450: function(e, t, n) {},
    451: function(e, t, n) {},
    452: function(e, t, n) {},
    453: function(e, t, n) {},
    454: function(e, t, n) {},
    455: function(e, t, n) {},
    456: function(e, t, n) {},
    457: function(e, t, n) {},
    683: function(e, t, n) {
        "use strict";
        n.r(t);
        var c = n(18), a = n(6), i = n.n(a), s = n(12), r = n(14), o = n(15), u = n(5), l = n(23), d = n(24), p = n(4), j = n(2), g = n.n(j), h = n(1), b = n(9), m = n(3), f = n(30), O = n(29), x = n.n(O), w = n(20), N = (n(369), 
        n(0)), T = function(e) {
            Object(l["a"])(n, e);
            var t = Object(d["a"])(n);
            function n(e) {
                var c;
                return Object(r["a"])(this, n), c = t.call(this, e), c.state = {
                    arrowRight: 0,
                    bodyRight: 0,
                    navbarHeight: 0
                }, c;
            }
            return Object(o["a"])(n, [ {
                key: "componentDidMount",
                value: function() {
                    var e = Object(w["c"])(), t = g.a.getSystemInfoSync(), n = t.screenWidth, c = n - e.right + 1 * e.width / 5, a = n - e.right + 3 * e.width / 4 - 5, i = e.bottom;
                    this.setState({
                        arrowRight: a,
                        bodyRight: c,
                        navbarHeight: i
                    });
                }
            }, {
                key: "shouldComponentUpdate",
                value: function(e, t) {
                    return this.props.show !== e.show || (this.props.custom !== e.custom || (this.state.bodyRight !== t.bodyRight || (this.state.arrowRight !== t.arrowRight || this.state.navbarHeight !== t.navbarHeight)));
                }
            }, {
                key: "render",
                value: function() {
                    var e = this.props, t = e.custom, n = e.onClose, c = e.show, a = this.state, i = a.arrowRight, s = a.bodyRight, r = a.navbarHeight;
                    return c && r ? Object(N["jsxs"])(h["View"], {
                        className: "add-mini-tip animated fadeIn faster",
                        style: {
                            top: t ? "".concat(r, "px") : 0
                        },
                        children: [ Object(N["jsx"])(h["View"], {
                            className: "arrow",
                            style: {
                                marginRight: "".concat(i, "px")
                            }
                        }), Object(N["jsxs"])(h["View"], {
                            className: "body",
                            style: {
                                marginRight: "".concat(s, "px")
                            },
                            children: [ Object(N["jsx"])(h["View"], {
                                className: "close-wrapper",
                                onClick: n,
                                children: Object(N["jsx"])(h["Image"], {
                                    className: "close",
                                    src: "https://mpstatic.qingting123.com/img/icon/close-2.png",
                                    mode: "widthFix"
                                })
                            }), Object(N["jsxs"])(h["View"], {
                                className: "tips",
                                children: [ Object(N["jsx"])(h["View"], {
                                    children: Object(N["jsx"])(h["Text"], {
                                        children: "添加到我的小程序"
                                    })
                                }), Object(N["jsx"])(h["View"], {
                                    children: Object(N["jsx"])(h["Text"], {
                                        children: "微信下拉快速打开"
                                    })
                                }) ]
                            }), Object(N["jsx"])(h["View"], {
                                className: "hand-wrapper",
                                children: Object(N["jsx"])(h["Image"], {
                                    className: "hand",
                                    src: "https://mpstatic.qingting123.com/img/icon/hand.png",
                                    mode: "widthFix"
                                })
                            }) ]
                        }) ]
                    }) : null;
                }
            } ]), n;
        }(m["Component"]);
        T.defaultProps = {
            show: !1,
            custom: !1,
            onClose: function() {}
        }, T.propType = {
            show: x.a.bool,
            custom: x.a.bool,
            onClose: x.a.func
        };
        var v, k, S = T, I = n(39), y = n(52), C = n(70), P = n(16), A = n(63), V = n(42), E = (n(416), 
        n(10)), M = n(32), D = (n(417), "ADD_TO_MY_WEAPP"), H = function() {
            var e = Object(m["useState"])({
                arrowRight: 0,
                contentRight: 0,
                top: 0
            }), t = Object(E["a"])(e, 2), n = t[0], c = t[1], a = Object(m["useState"])(!1), i = Object(E["a"])(a, 2), s = i[0], r = i[1];
            return Object(m["useEffect"])(function() {
                Object(j["getStorage"])({
                    key: D
                }).catch(function() {
                    var e = Object(w["c"])(), t = Object(j["getSystemInfoSync"])(), n = t.screenWidth, a = n - e.right + 3 * e.width / 4 - 5, i = n - e.right + 1 * e.width / 5, s = e.bottom;
                    c({
                        arrowRight: a,
                        contentRight: i,
                        top: s
                    }), r(!0), Object(j["setStorage"])({
                        key: D,
                        data: Object(M["b"])()
                    });
                });
            }, []), s ? Object(N["jsxs"])(h["View"], {
                className: "add-to-my-weapp animated fadeIn faster",
                style: {
                    top: "".concat(n.top, "px")
                },
                children: [ Object(N["jsx"])(h["View"], {
                    className: "arrow",
                    style: {
                        marginRight: "".concat(n.arrowRight, "px")
                    }
                }), Object(N["jsxs"])(h["View"], {
                    className: "content",
                    style: {
                        marginRight: "".concat(n.contentRight, "px")
                    },
                    children: [ Object(N["jsx"])(h["Text"], {
                        children: "点击“"
                    }), Object(N["jsx"])(h["Text"], {
                        className: "icon-font iconfont-weapp-more"
                    }), Object(N["jsx"])(h["Text"], {
                        children: "”，添加到我的小程序"
                    }), Object(N["jsx"])(h["Text"], {
                        className: "icon-font iconfont-guanbi",
                        onClick: function() {
                            return r(!1);
                        }
                    }) ]
                }) ]
            }) : null;
        }, _ = n(83), L = n.n(_), z = n(13), R = n(27), U = n(37), F = n(71), G = n(78), B = n(45), W = n(31), q = n(109), J = n(8), K = (n(441), 
        n(7)), X = n(119), Y = n.n(X), $ = n(19), Z = n.n($), Q = n(46), ee = (n(443), function(e) {
            var t = Object(b["d"])(function(e) {
                return e.user.agent;
            }), n = t.agentId, c = Object(b["d"])(function(e) {
                return e.user;
            }), a = c.loginStatus, i = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), s = i.miniServiceType;
            return 1 === s ? null : Object(N["jsxs"])(h["View"], {
                className: "icon-btns",
                children: [ Object(N["jsxs"])(h["Button"], {
                    className: "item",
                    onClick: e.onAddTip,
                    children: [ Object(N["jsx"])(h["Image"], {
                        mode: "widthFix",
                        className: "icon",
                        src: "http://cdn.meizhuan.cn/pic-go/menu-210425.png"
                    }), Object(N["jsx"])(h["Text"], {
                        className: "label",
                        children: "添加小程序"
                    }) ]
                }), a && n ? Object(N["jsxs"])(h["Button"], {
                    className: "item",
                    openType: "share",
                    children: [ Object(N["jsx"])(h["Image"], {
                        mode: "widthFix",
                        className: "icon",
                        src: "http://cdn.meizhuan.cn/pic-go/wechat-210425.png"
                    }), Object(N["jsx"])(h["Text"], {
                        className: "label",
                        children: "分享给好友"
                    }) ]
                }) : null, a && !n ? Object(N["jsxs"])(h["Button"], {
                    className: "item",
                    onClick: e.onGetUserProfile,
                    children: [ Object(N["jsx"])(h["Image"], {
                        mode: "widthFix",
                        className: "icon",
                        src: "http://cdn.meizhuan.cn/pic-go/wechat-210425.png"
                    }), Object(N["jsx"])(h["Text"], {
                        className: "label",
                        children: "分享给好友"
                    }) ]
                }) : null, a ? null : Object(N["jsxs"])(h["Button"], {
                    className: "item",
                    onClick: e.onLogin,
                    children: [ Object(N["jsx"])(h["Image"], {
                        mode: "widthFix",
                        className: "icon",
                        src: "http://cdn.meizhuan.cn/pic-go/wechat-210425.png"
                    }), Object(N["jsx"])(h["Text"], {
                        className: "label",
                        children: "分享给好友"
                    }) ]
                }) ]
            });
        });
        (function(e) {
            e[e["ELEME"] = 1] = "ELEME", e[e["ELEME_GUOSHU"] = 2] = "ELEME_GUOSHU", e[e["MEITUAN_TAKEOUT"] = 3] = "MEITUAN_TAKEOUT", 
            e[e["MEITUAN_SELECT"] = 4] = "MEITUAN_SELECT", e[e["MEITUAN_MARKET"] = 5] = "MEITUAN_MARKET", 
            e[e["MEITUAN_HOTEL"] = 6] = "MEITUAN_HOTEL", e[e["MEITUAN_WEEKEND"] = 7] = "MEITUAN_WEEKEND", 
            e[e["MEITUAN_ARRIVE"] = 8] = "MEITUAN_ARRIVE", e[e["KFC"] = 9] = "KFC", e[e["MOVIE_TICKET"] = 10] = "MOVIE_TICKET", 
            e[e["PHONE_CHARGE"] = 11] = "PHONE_CHARGE", e[e["TRAIN_TICKET"] = 12] = "TRAIN_TICKET", 
            e[e["DIDI_CAR"] = 13] = "DIDI_CAR", e[e["ADD_WEAPP"] = 14] = "ADD_WEAPP", e[e["SHARE_FRIEND"] = 15] = "SHARE_FRIEND", 
            e[e["TAOBAO"] = 16] = "TAOBAO", e[e["VIP"] = 17] = "VIP", e[e["JD"] = 18] = "JD", 
            e[e["PDD"] = 19] = "PDD", e[e["ONE_POINT_NINE"] = 20] = "ONE_POINT_NINE", e[e["REBATE_RANK"] = 21] = "REBATE_RANK", 
            e[e["BRANDED_GOODIES"] = 22] = "BRANDED_GOODIES", e[e["MOTHER_AND_BABY"] = 23] = "MOTHER_AND_BABY", 
            e[e["FOOD_AND_DELIGHTS"] = 24] = "FOOD_AND_DELIGHTS", e[e["GENERAL_MERCHANDISE"] = 25] = "GENERAL_MERCHANDISE", 
            e[e["DRESS"] = 26] = "DRESS", e[e["NEW_FREE"] = 27] = "NEW_FREE", e[e["DIDI_OIL"] = 28] = "DIDI_OIL", 
            e[e["AMAP_CAR"] = 29] = "AMAP_CAR", e[e["DD_CAR"] = 30] = "DD_CAR", e[e["DINE_DASH"] = 31] = "DINE_DASH", 
            e[e["CREDIT_CARD"] = 32] = "CREDIT_CARD", e[e["AMAP_CAR_PAGE"] = 33] = "AMAP_CAR_PAGE";
        })(v || (v = {})), function(e) {
            e[e["INTERNAL_PAGE"] = 1] = "INTERNAL_PAGE", e[e["OTHER_WEAPP"] = 2] = "OTHER_WEAPP";
        }(k || (k = {}));
        var te = [ {
            guideNo: 27,
            imageHref: "http://cdn.meizhuan.cn/pic-go/new-free-210615.png",
            guideTitle: "新人免单",
            openStatus: 1,
            openPage: 27,
            cornerText: ""
        }, {
            guideNo: 16,
            imageHref: "http://cdn.meizhuan.cn/pic-go/tb-210427.png",
            guideTitle: "淘宝",
            openStatus: 1,
            openPage: 16,
            cornerText: ""
        }, {
            guideNo: 17,
            imageHref: "http://cdn.meizhuan.cn/pic-go/vip-210527.png",
            guideTitle: "唯品会",
            openStatus: 1,
            openPage: 17,
            cornerText: ""
        }, {
            guideNo: 18,
            imageHref: "http://cdn.meizhuan.cn/pic-go/jd-210427.png",
            guideTitle: "京东",
            openStatus: 1,
            openPage: 18,
            cornerText: ""
        }, {
            guideNo: 19,
            imageHref: "http://cdn.meizhuan.cn/pic-go/pdd-210427.png",
            guideTitle: "拼多多",
            openStatus: 1,
            openPage: 19,
            cornerText: ""
        }, {
            guideNo: 21,
            imageHref: "http://cdn.meizhuan.cn/pic-go/jrrx-210427.png",
            guideTitle: "今日热销",
            openStatus: 1,
            openPage: 21,
            cornerText: ""
        }, {
            guideNo: 1,
            imageHref: "http://cdn.meizhuan.cn/pic-go/ele-210425.png",
            guideTitle: "饿了么",
            openStatus: 1,
            openPage: 1,
            cornerText: ""
        }, {
            guideNo: 3,
            imageHref: "http://cdn.meizhuan.cn/pic-go/meituan-210425.png",
            guideTitle: "美团外卖",
            openStatus: 1,
            openPage: 3,
            cornerText: ""
        }, {
            guideNo: 8,
            imageHref: "http://cdn.meizhuan.cn/pic-go/takeout-mt-arrive-20210322.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/lqbz-210521.png",
            guideTitle: "吃喝玩乐",
            openStatus: 1,
            openPage: 8,
            cornerText: ""
        }, {
            guideNo: 9,
            imageHref: "http://cdn.meizhuan.cn/pic-go/kfc-1-210517.png",
            guideTitle: "肯德基",
            openStatus: 1,
            openPage: 9,
            cornerText: "5折起"
        }, {
            guideNo: 10,
            imageHref: "http://cdn.meizhuan.cn/pic-go/film-210425.png",
            guideTitle: "特价影票",
            openStatus: 1,
            openPage: 10,
            cornerText: ""
        }, {
            guideNo: 4,
            imageHref: "http://cdn.meizhuan.cn/pic-go/mt-select-210513.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/1fqmc-210521.png",
            guideTitle: "美团优选",
            openStatus: 1,
            openPage: 4,
            cornerText: "1分钱买菜"
        }, {
            guideNo: 5,
            imageHref: "http://cdn.meizhuan.cn/pic-go/mt-sc-210706.png",
            guideTitle: "美团商超",
            openStatus: 1,
            openPage: 5,
            cornerText: ""
        }, {
            guideNo: 11,
            imageHref: "http://cdn.meizhuan.cn/pic-go/recharge-blue-210326.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/lj8y-210513.png",
            guideTitle: "话费充值",
            openStatus: 1,
            openPage: 11,
            cornerText: "立减8元"
        }, {
            guideNo: 28,
            imageHref: "http://cdn.meizhuan.cn/pic-go/ddjy-20210825.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/lj30y-210830.png",
            guideTitle: "滴滴加油",
            openStatus: 1,
            openPage: 28,
            cornerText: "立减30元"
        }, {
            guideNo: 12,
            imageHref: "http://cdn.meizhuan.cn/pic-go/train-ticket-210511.png",
            guideTitle: "火车票",
            openStatus: 1,
            openPage: 12,
            cornerText: ""
        }, {
            guideNo: 13,
            imageHref: "http://cdn.meizhuan.cn/pic-go/didi-210610.png",
            guideTitle: "滴滴打车券",
            openStatus: 1,
            openPage: 13,
            cornerText: ""
        }, {
            guideNo: 7,
            imageHref: "http://cdn.meizhuan.cn/pic-go/mttj-210429.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/zd1y-210513.png",
            guideTitle: "周末特价",
            openStatus: 1,
            openPage: 7,
            cornerText: "最低1元"
        }, {
            guideNo: 20,
            imageHref: "http://cdn.meizhuan.cn/pic-go/ydjby-210427.png",
            guideTitle: "1.9包邮",
            openStatus: 1,
            openPage: 20,
            cornerText: ""
        }, {
            guideNo: 22,
            imageHref: "http://cdn.meizhuan.cn/pic-go/pphh-210427.png",
            guideTitle: "品牌好货",
            openStatus: 1,
            openPage: 22,
            cornerText: ""
        }, {
            guideNo: 6,
            imageHref: "http://cdn.meizhuan.cn/pic-go/hotel-210425.png",
            guideTitle: "美团酒店",
            openStatus: 1,
            openPage: 6,
            cornerText: ""
        }, {
            guideNo: 23,
            imageHref: "http://cdn.meizhuan.cn/pic-go/my-210427.png",
            guideTitle: "母婴",
            openStatus: 1,
            openPage: 23,
            cornerText: ""
        }, {
            guideNo: 24,
            imageHref: "http://cdn.meizhuan.cn/pic-go/ms-210427.png",
            guideTitle: "美食",
            openStatus: 1,
            openPage: 24,
            cornerText: ""
        }, {
            guideNo: 25,
            imageHref: "http://cdn.meizhuan.cn/pic-go/bh-210427.png",
            guideTitle: "百货",
            openStatus: 1,
            openPage: 25,
            cornerText: ""
        }, {
            guideNo: 26,
            imageHref: "http://cdn.meizhuan.cn/pic-go/nz-210427.png",
            guideTitle: "女装",
            openStatus: 1,
            openPage: 26,
            cornerText: ""
        } ], ne = [ {
            guideNo: 19,
            imageHref: "http://cdn.meizhuan.cn/pic-go/pdd-210427.png",
            guideTitle: "拼多多",
            openStatus: 1,
            openPage: 19,
            cornerText: ""
        }, {
            guideNo: 18,
            imageHref: "http://cdn.meizhuan.cn/pic-go/jd-210427.png",
            guideTitle: "京东",
            openStatus: 1,
            openPage: 18,
            cornerText: ""
        }, {
            guideNo: 17,
            imageHref: "http://cdn.meizhuan.cn/pic-go/vip-210527.png",
            guideTitle: "唯品会",
            openStatus: 1,
            openPage: 17,
            cornerText: ""
        }, {
            guideNo: 8,
            imageHref: "http://cdn.meizhuan.cn/pic-go/takeout-mt-arrive-20210322.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/lqbz-210521.png",
            guideTitle: "吃喝玩乐",
            openStatus: 1,
            openPage: 8,
            cornerText: ""
        }, {
            guideNo: 9,
            imageHref: "http://cdn.meizhuan.cn/pic-go/kfc-1-210517.png",
            guideTitle: "肯德基",
            openStatus: 1,
            openPage: 9,
            cornerText: "5折起"
        }, {
            guideNo: 10,
            imageHref: "http://cdn.meizhuan.cn/pic-go/film-210425.png",
            guideTitle: "特价影票",
            openStatus: 1,
            openPage: 10,
            cornerText: ""
        }, {
            guideNo: 4,
            imageHref: "http://cdn.meizhuan.cn/pic-go/mt-select-210513.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/1fqmc-210521.png",
            guideTitle: "美团优选",
            openStatus: 1,
            openPage: 4,
            cornerText: "1分钱买菜"
        }, {
            guideNo: 11,
            imageHref: "http://cdn.meizhuan.cn/pic-go/recharge-blue-210326.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/lj8y-210513.png",
            guideTitle: "话费充值",
            openStatus: 1,
            openPage: 11,
            cornerText: "立减8元"
        }, {
            guideNo: 5,
            imageHref: "http://cdn.meizhuan.cn/pic-go/mt-sc-210706.png",
            guideTitle: "美团商超",
            openStatus: 1,
            openPage: 5,
            cornerText: ""
        }, {
            guideNo: 28,
            imageHref: "http://cdn.meizhuan.cn/pic-go/ddjy-20210825.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/lj30y-210830.png",
            guideTitle: "滴滴加油",
            openStatus: 1,
            openPage: 28,
            cornerText: "立减30元"
        }, {
            guideNo: 7,
            imageHref: "http://cdn.meizhuan.cn/pic-go/mttj-210429.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/zd1y-210513.png",
            guideTitle: "周末特价",
            openStatus: 1,
            openPage: 7,
            cornerText: "最低1元"
        }, {
            guideNo: 12,
            imageHref: "http://cdn.meizhuan.cn/pic-go/train-ticket-210511.png",
            guideTitle: "火车票",
            openStatus: 1,
            openPage: 12,
            cornerText: ""
        }, {
            guideNo: 13,
            imageHref: "http://cdn.meizhuan.cn/pic-go/didi-210610.png",
            guideTitle: "滴滴打车券",
            openStatus: 1,
            openPage: 13,
            cornerText: ""
        }, {
            guideNo: 6,
            imageHref: "http://cdn.meizhuan.cn/pic-go/hotel-210425.png",
            guideTitle: "美团酒店",
            openStatus: 1,
            openPage: 6,
            cornerText: ""
        }, {
            guideNo: 2,
            imageHref: "http://cdn.meizhuan.cn/pic-go/fruit210329.png",
            guideTitle: "饿了么果蔬",
            openStatus: 1,
            openPage: 2,
            cornerText: ""
        }, {
            guideNo: 14,
            imageHref: "http://cdn.meizhuan.cn/pic-go/favorite-210329.png",
            guideTitle: "添加小程序",
            openStatus: 1,
            openPage: 14,
            cornerText: ""
        }, {
            guideNo: 15,
            imageHref: "http://cdn.meizhuan.cn/pic-go/share-210425.png",
            guideTitle: "分享给好友",
            openStatus: 1,
            openPage: 15,
            cornerText: ""
        } ], ce = [ {
            guideNo: 1,
            imageHref: "http://cdn.meizhuan.cn/pic-go/ele-210425.png",
            guideTitle: "饿了么",
            openStatus: 1,
            openPage: 1,
            cornerText: ""
        }, {
            guideNo: 3,
            imageHref: "http://cdn.meizhuan.cn/pic-go/meituan-210425.png",
            guideTitle: "美团外卖",
            openStatus: 1,
            openPage: 3,
            cornerText: ""
        }, {
            guideNo: 8,
            imageHref: "http://cdn.meizhuan.cn/pic-go/takeout-mt-arrive-20210322.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/lqbz-210521.png",
            guideTitle: "吃喝玩乐",
            openStatus: 1,
            openPage: 8,
            cornerText: ""
        }, {
            guideNo: 9,
            imageHref: "http://cdn.meizhuan.cn/pic-go/kfc-1-210517.png",
            guideTitle: "肯德基",
            openStatus: 1,
            openPage: 9,
            cornerText: "5折起"
        }, {
            guideNo: 10,
            imageHref: "http://cdn.meizhuan.cn/pic-go/film-210425.png",
            guideTitle: "特价影票",
            openStatus: 1,
            openPage: 10,
            cornerText: ""
        }, {
            guideNo: 4,
            imageHref: "http://cdn.meizhuan.cn/pic-go/mt-select-210513.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/1fqmc-210521.png",
            guideTitle: "美团优选",
            openStatus: 1,
            openPage: 4,
            cornerText: "1分钱买菜"
        }, {
            guideNo: 5,
            imageHref: "http://cdn.meizhuan.cn/pic-go/mt-sc-210706.png",
            guideTitle: "美团商超",
            openStatus: 1,
            openPage: 5,
            cornerText: ""
        }, {
            guideNo: 11,
            imageHref: "http://cdn.meizhuan.cn/pic-go/recharge-blue-210326.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/lj8y-210513.png",
            guideTitle: "话费充值",
            openStatus: 1,
            openPage: 11,
            cornerText: "立减8元"
        }, {
            guideNo: 12,
            imageHref: "http://cdn.meizhuan.cn/pic-go/train-ticket-210511.png",
            guideTitle: "火车票",
            openStatus: 1,
            openPage: 12,
            cornerText: ""
        }, {
            guideNo: 28,
            imageHref: "http://cdn.meizhuan.cn/pic-go/ddjy-20210825.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/lj30y-210830.png",
            guideTitle: "滴滴加油",
            openStatus: 1,
            openPage: 28,
            cornerText: "立减30元"
        }, {
            guideNo: 13,
            imageHref: "http://cdn.meizhuan.cn/pic-go/didi-210610.png",
            guideTitle: "滴滴打车券",
            openStatus: 1,
            openPage: 13,
            cornerText: ""
        }, {
            guideNo: 7,
            imageHref: "http://cdn.meizhuan.cn/pic-go/mttj-210429.png",
            cornerHref: "http://cdn.meizhuan.cn/pic-go/zd1y-210513.png",
            guideTitle: "周末特价",
            openStatus: 1,
            openPage: 7,
            cornerText: "最低1元"
        }, {
            guideNo: 2,
            imageHref: "http://cdn.meizhuan.cn/pic-go/fruit210329.png",
            guideTitle: "饿了么果蔬",
            openStatus: 1,
            openPage: 2,
            cornerText: ""
        }, {
            guideNo: 6,
            imageHref: "http://cdn.meizhuan.cn/pic-go/hotel-210425.png",
            guideTitle: "美团酒店",
            openStatus: 1,
            openPage: 6,
            cornerText: ""
        }, {
            guideNo: 14,
            imageHref: "http://cdn.meizhuan.cn/pic-go/favorite-210329.png",
            guideTitle: "添加小程序",
            openStatus: 1,
            openPage: 14,
            cornerText: ""
        }, {
            guideNo: 15,
            imageHref: "http://cdn.meizhuan.cn/pic-go/share-210425.png",
            guideTitle: "分享给好友",
            openStatus: 1,
            openPage: 15,
            cornerText: ""
        } ], ae = function() {
            var e = Object(s["a"])(i.a.mark(function e() {
                var t, n, c, a;
                return i.a.wrap(function(e) {
                    while (1) switch (e.prev = e.next) {
                      case 0:
                        return t = {
                            needMini: 0,
                            type: 8
                        }, Object(j["showLoading"])({
                            title: "正在加载",
                            mask: !0
                        }), e.next = 4, J["U"].getMTLink(t).then(function(e) {
                            return e.data;
                        });

                      case 4:
                        if (n = e.sent, Object(j["hideLoading"])(), 0 == n.code) {
                            e.next = 10;
                            break;
                        }
                        return c = "MtfxAction.getMTLink: ".concat(n.msg), Object(j["showToast"])({
                            title: c,
                            icon: "none"
                        }), e.abrupt("return", !1);

                      case 10:
                        a = {
                            appId: P["e"].MT,
                            path: n.weappUrl
                        }, Object(j["navigateToMiniProgram"])(a).catch(console.log);

                      case 12:
                      case "end":
                        return e.stop();
                    }
                }, e);
            }));
            return function() {
                return e.apply(this, arguments);
            };
        }(), ie = function() {
            var e = Object(s["a"])(i.a.mark(function e(t) {
                var n, c, a, s, r, o;
                return i.a.wrap(function(e) {
                    while (1) switch (e.prev = e.next) {
                      case 0:
                        return Object(j["showLoading"])({
                            title: "正在加载",
                            mask: !0
                        }), e.next = 3, J["G"].fetchWithDDPid().then(function(e) {
                            return e.data;
                        });

                      case 3:
                        if (n = e.sent, 0 == n.code) {
                            e.next = 7;
                            break;
                        }
                        return Object(j["showToast"])({
                            title: n.msg,
                            icon: "none"
                        }), e.abrupt("return", !1);

                      case 7:
                        return c = {
                            pidId: n.ddPidId || n.agent.ddPidId || "",
                            resourceType: t
                        }, e.next = 10, J["K"].resourceUrl(c);

                      case 10:
                        if (a = e.sent, Object(j["hideLoading"])(), s = a.data, 0 == s.code) {
                            e.next = 16;
                            break;
                        }
                        return Object(j["showToast"])({
                            title: s.msg,
                            icon: "none"
                        }), e.abrupt("return", !1);

                      case 16:
                        if (r = s.resource.page_path, r) {
                            e.next = 20;
                            break;
                        }
                        return Object(j["showToast"])({
                            title: "未获取到跳转路径",
                            icon: "none"
                        }), e.abrupt("return", !1);

                      case 20:
                        o = {
                            appId: P["e"].PDD,
                            path: r
                        }, Object(j["navigateToMiniProgram"])(o).catch(function() {});

                      case 22:
                      case "end":
                        return e.stop();
                    }
                }, e);
            }));
            return function(t) {
                return e.apply(this, arguments);
            };
        }(), se = function() {
            var e = Object(s["a"])(i.a.mark(function e() {
                var t, n, c;
                return i.a.wrap(function(e) {
                    while (1) switch (e.prev = e.next) {
                      case 0:
                        return Object(j["showLoading"])({
                            title: "正在加载",
                            mask: !0
                        }), t = {
                            type: 1,
                            needMini: 0
                        }, e.next = 4, J["g"].getLink(t).then(function(e) {
                            return e.data;
                        });

                      case 4:
                        if (n = e.sent, 0 == n.code) {
                            e.next = 8;
                            break;
                        }
                        return Object(j["showToast"])({
                            title: n.msg,
                            icon: "none"
                        }), e.abrupt("return", !1);

                      case 8:
                        Object(j["hideLoading"])(), c = {
                            appId: P["e"].DDJY,
                            path: n.url
                        }, Object(j["navigateToMiniProgram"])(c).catch(function() {});

                      case 11:
                      case "end":
                        return e.stop();
                    }
                }, e);
            }));
            return function() {
                return e.apply(this, arguments);
            };
        }(), re = function(e) {
            if (6632 !== e) if (9160 !== e) ; else {
                var t = "shareActivity/basic_activity/page/BasicActivityPop/BasicActivityPop?page_id=4kXb84w1F5u&gd_from=outside_coupon_taokef";
                Object(j["navigateToMiniProgram"])({
                    appId: P["e"].GDDC,
                    path: t
                });
            } else {
                var n = "shareActivity/basic_activity/page/BasicActivityPop/BasicActivityPop?page_id=4kXczUKXf3d&gd_from=outside_coupon_taokee";
                Object(j["navigateToMiniProgram"])({
                    appId: P["e"].GDDC,
                    path: n
                });
            }
        }, oe = function(e) {
            var t = Object(Q["c"])(), n = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), c = n.showMt, a = n.showBwc, i = n.showKfc, s = n.showMdl, r = n.bwcAppid, o = void 0 === r ? "" : r, u = n.showDdDc, l = n.showGdDc, d = n.showMtYx, p = n.showDdJy, g = n.showTrain, f = n.captainId, O = n.pddSubsidy, x = n.showCinema, T = n.showHuafei, v = n.didiChuxing, S = n.showMtHotel, I = n.creditCardFk, y = n.showZhoumoTejia, C = n.miniServiceType, A = Object(b["d"])(function(e) {
                return e.user.agent;
            }), V = A.agentId, M = Object(b["d"])(function(e) {
                return e.takeout;
            }), D = M.showEle, H = Object(b["d"])(function(e) {
                return e.user;
            }), _ = H.loginStatus, L = Object(b["d"])(function(e) {
                return e.user.mp;
            }), z = L.newFreeThreshold, U = Object(m["useState"])(0), F = Object(E["a"])(U, 2), G = F[0], B = F[1], W = Object(m["useState"])(0), q = Object(E["a"])(W, 2), K = q[0], X = q[1], $ = Object(m["useState"])([]), ee = Object(E["a"])($, 2), oe = ee[0], ue = ee[1], le = Object(m["useState"])([]), de = Object(E["a"])(le, 2), pe = de[0], je = de[1], ge = Object(m["useCallback"])(function() {
                J["t"].fetchMpNewList().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if (0 !== e.code) {
                        var t = "MpGuideAction.fetchMpNewList: ".concat(e.msg);
                        return Object(j["showToast"])({
                            title: t,
                            icon: "none"
                        }), !1;
                    }
                    e.list && e.list.length && (Object(j["setStorage"])({
                        key: P["d"].CUSTOM_GRID_LIST,
                        data: e.list
                    }), je(e.list));
                });
            }, []);
            Object(m["useEffect"])(function() {
                if (C && !pe.length) {
                    var e = Object(j["getStorageSync"])(P["d"].CUSTOM_GRID_LIST);
                    e ? je(e) : 1 !== C ? 4 !== C ? 5 !== C && 6 !== C || je(ce) : je(ne) : je(te);
                }
            }, [ C, pe.length ]), Object(m["useEffect"])(ge, [ ge ]), Object(j["usePullDownRefresh"])(ge), 
            Object(m["useEffect"])(function() {
                if (!pe.length) return B(0), void ue([]);
                var e = pe.map(function(e) {
                    if (e.openStatus === k.OTHER_WEAPP) return e.show = !0, e;
                    var n = Object(w["d"])(), r = n.platform;
                    if (e.openStatus === k.INTERNAL_PAGE) {
                        switch (e.openPage) {
                          case 1:
                          case 2:
                            e.show = D;
                            break;

                          case 3:
                          case 5:
                          case 8:
                            e.show = c;
                            break;

                          case 4:
                            e.show = c && d;
                            break;

                          case 6:
                            e.show = c && S;
                            break;

                          case 7:
                            e.show = c && y;
                            break;

                          case 9:
                            e.show = i || s;
                            break;

                          case 10:
                            e.show = x;
                            break;

                          case 11:
                            e.show = T && ("ios" !== r || "ios" === r && 9160 !== f);
                            break;

                          case 12:
                            e.show = g;
                            break;

                          case 13:
                            e.show = v;
                            break;

                          case 14:
                          case 15:
                            e.show = !0;
                            break;

                          case 16:
                            e.show = t;
                            break;

                          case 17:
                          case 18:
                          case 19:
                          case 20:
                          case 21:
                          case 22:
                          case 23:
                          case 24:
                          case 25:
                          case 26:
                            e.show = !0;
                            break;

                          case 27:
                            e.show = z;
                            break;

                          case 28:
                            e.show = p;
                            break;

                          case 29:
                            e.show = 6632 === f || 9160 === f;
                            break;

                          case 30:
                            e.show = u;
                            break;

                          case 31:
                            e.show = a;
                            break;

                          case 32:
                            e.show = I && [ 4, 5, 6 ].includes(C);
                            break;

                          case 33:
                            e.show = l;
                            break;

                          default:
                            break;
                        }
                        return e;
                    }
                    return e.show = !1, e;
                }).filter(function(e) {
                    return e.show;
                }), n = 0;
                1 === C ? n = e.length >= 15 ? 15 : 10 : [ 4, 5, 6 ].includes(C) && (n = e.length >= 10 ? 10 : 5), 
                B(n), ue(Y()(e, n));
            }, [ f, I, v, C, z, pe, a, x, u, p, D, l, T, i, s, c, S, d, t, g, y ]);
            var he = Object(m["useCallback"])(function(t) {
                if (_) if (1 !== t.openStatus) {
                    if (t.openMiniAppidPage) {
                        var n = Object(w["a"])(), c = n.miniProgram;
                        if (t.openMiniAppid === c.appId) return t.openMiniAppidPage.startsWith("/") ? void Object(j["navigateTo"])({
                            url: t.openMiniAppidPage
                        }) : void Object(j["navigateTo"])({
                            url: "/" + t.openMiniAppidPage
                        });
                        Object(j["navigateToMiniProgram"])({
                            appId: t.openMiniAppid || "",
                            path: t.openMiniAppidPage,
                            fail: function(e) {
                                "navigateToMiniProgram:fail cancel" !== e.errMsg && Object(j["showToast"])({
                                    icon: "none",
                                    title: e.errMsg
                                });
                            }
                        });
                    }
                } else switch (t.openPage) {
                  case 1:
                    R["a"].openEleme();
                    break;

                  case 2:
                    R["a"].openEleme("guoshu");
                    break;

                  case 3:
                    R["a"].openMeituan();
                    break;

                  case 4:
                    R["a"].openMeituan("select");
                    break;

                  case 5:
                    R["a"].openMeituan("shangchao");
                    break;

                  case 6:
                    R["a"].openMeituan("hotel");
                    break;

                  case 7:
                    ae();
                    break;

                  case 11:
                    ie(39997);
                    break;

                  case 12:
                    ie(50005);
                    break;

                  case 13:
                    Object(j["navigateToMiniProgram"])({
                        appId: P["e"].DIDI,
                        path: v
                    });
                    break;

                  case 8:
                    R["a"].openArrive();
                    break;

                  case 9:
                    Object(j["navigateTo"])({
                        url: "/pages/kfc_and_m/index"
                    });
                    break;

                  case 10:
                    R["a"].openMovie();
                    break;

                  case 14:
                    e.onAddTip();
                    break;

                  case 15:
                    e.onGetUserProfile();
                    break;

                  case 16:
                    R["a"].openTJP();
                    break;

                  case 17:
                    R["a"].openVip();
                    break;

                  case 18:
                    R["a"].openTJP("jd");
                    break;

                  case 19:
                    if (O) return void Object(j["navigateTo"])({
                        url: "/pages/pdd_ten_million_subsidy/index"
                    });
                    R["a"].openTJP("pdd");
                    break;

                  case 20:
                    R["a"].openOnePointNineAndBrand();
                    break;

                  case 21:
                    R["a"].openTodayHot();
                    break;

                  case 22:
                    R["a"].openOnePointNineAndBrand("pphh");
                    break;

                  case 23:
                    R["a"].openCate();
                    break;

                  case 24:
                    R["a"].openCate("ms");
                    break;

                  case 25:
                    R["a"].openCate("bh");
                    break;

                  case 26:
                    R["a"].openCate("nvzhuang");
                    break;

                  case 27:
                    R["a"].openNewAndFree();
                    break;

                  case 28:
                    se();
                    break;

                  case 29:
                    re(f);
                    break;

                  case 30:
                    R["a"].openDidi();
                    break;

                  case 31:
                    o ? Object(j["navigateToMiniProgram"])({
                        appId: o,
                        path: "/pages/dine_and_dash_h5/index",
                        fail: function(e) {
                            "navigateToMiniProgram:fail cancel" !== e.errMsg && Object(j["showToast"])({
                                icon: "none",
                                title: e.errMsg
                            });
                        }
                    }) : R["a"].openDineAndDash();
                    break;

                  case 33:
                    R["a"].openDidi("amap");
                    break;

                  default:
                    break;
                } else e.onLogin();
            }, [ o, f, v, _, O, e ]);
            return Object(N["jsxs"])(h["View"], {
                className: "grid-list",
                children: [ Object(N["jsx"])(h["Swiper"], {
                    className: Z()("custom-grid-container", "custom-grid-size-".concat(G), "custom-grid-miniServiceType-".concat(C)),
                    current: K,
                    onAnimationFinish: function(e) {
                        return X(e.detail.current);
                    },
                    children: oe.map(function(e, t) {
                        return Object(N["jsx"])(h["SwiperItem"], {
                            className: "swiper-item",
                            children: Object(N["jsx"])(h["View"], {
                                className: "icon-menu",
                                children: e.map(function(e) {
                                    return 1 === e.openStatus && 15 === e.openPage && V ? Object(N["jsxs"])(h["Button"], {
                                        openType: "share",
                                        className: "item",
                                        children: [ Object(N["jsx"])(h["Image"], {
                                            className: "icon",
                                            mode: "widthFix",
                                            src: e.imageHref
                                        }), Object(N["jsx"])(h["Text"], {
                                            className: "label",
                                            children: e.guideTitle
                                        }), e.cornerText ? Object(N["jsx"])(h["View"], {
                                            className: "corner-text",
                                            style: {
                                                backgroundColor: e.cornerColor || ""
                                            },
                                            children: e.cornerText
                                        }) : null ]
                                    }, e.guideNo) : 1 === e.openStatus && 32 === e.openPage && V ? Object(N["jsxs"])(h["Button"], {
                                        className: "item",
                                        openType: "contact",
                                        showMessageCard: !0,
                                        sendMessageImg: "http://cdn.meizhuan.cn/pic-go/creditCard.jpg",
                                        sendMessagePath: "/pages/main/home/index?contact=creditCard",
                                        sendMessageTitle: "别点我，点击客服回复的消息！",
                                        children: [ Object(N["jsx"])(h["Image"], {
                                            className: "icon",
                                            mode: "widthFix",
                                            src: e.imageHref
                                        }), Object(N["jsx"])(h["Text"], {
                                            className: "label",
                                            children: e.guideTitle
                                        }), e.cornerText ? Object(N["jsx"])(h["View"], {
                                            className: "corner-text",
                                            style: {
                                                backgroundColor: e.cornerColor || ""
                                            },
                                            children: e.cornerText
                                        }) : null ]
                                    }, e.guideNo) : Object(N["jsxs"])(h["View"], {
                                        className: "item",
                                        onClick: function() {
                                            return he(e);
                                        },
                                        children: [ Object(N["jsx"])(h["Image"], {
                                            className: "icon",
                                            src: e.imageHref
                                        }), Object(N["jsx"])(h["Text"], {
                                            className: "label",
                                            children: e.guideTitle
                                        }), e.cornerText ? Object(N["jsx"])(h["View"], {
                                            className: "corner-text",
                                            style: {
                                                backgroundColor: e.cornerColor || ""
                                            },
                                            children: e.cornerText
                                        }) : null ]
                                    }, e.guideNo);
                                })
                            })
                        }, t);
                    })
                }), Object(N["jsx"])(h["View"], {
                    className: "indicator-dots",
                    children: oe.map(function(e, t) {
                        return Object(N["jsx"])(h["View"], {
                            className: Z()("item", {
                                active: t === K
                            })
                        }, t);
                    })
                }) ]
            });
        }, ue = function(e) {
            var t = Object(Q["a"])(), n = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), c = n.miniServiceType;
            return 2 === c || 3 === c ? null : t ? Object(N["jsx"])(ee, Object(K["a"])({}, e)) : Object(N["jsx"])(oe, Object(K["a"])({}, e));
        }, le = n(105), de = (n(444), function() {
            var e = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), t = e.miniServiceType;
            return 1 === t ? Object(N["jsxs"])(h["View"], {
                className: "module-swiper",
                children: [ Object(N["jsx"])(h["View"], {
                    className: "swiper-placeholder"
                }), Object(N["jsx"])(h["View"], {
                    className: "swiper-fixed",
                    children: Object(N["jsx"])(h["Swiper"], {
                        circular: !0,
                        indicatorDots: !0,
                        autoplay: !0,
                        className: "swiper",
                        indicatorColor: "#ccc",
                        indicatorActiveColor: "#fff",
                        children: Object(N["jsx"])(h["SwiperItem"], {
                            className: "item",
                            children: Object(N["jsx"])(h["Image"], {
                                className: "image",
                                mode: "widthFix",
                                src: "http://cdn.meizhuan.cn/pic-go/takeout-banner-movie.png"
                            })
                        })
                    })
                }) ]
            }) : [ 4, 5, 6 ].includes(t) ? Object(N["jsxs"])(h["View"], {
                className: "banner",
                children: [ Object(N["jsxs"])(h["View"], {
                    className: "bg",
                    children: [ Object(N["jsx"])(h["View"], {
                        className: Z()("up-space", 4 === t ? "four" : "five")
                    }), Object(N["jsx"])(h["View"], {
                        className: Z()("down-space", 4 === t ? "four" : "five")
                    }) ]
                }), Object(N["jsx"])(h["View"], {
                    className: "hover",
                    children: Object(N["jsx"])(h["Swiper"], {
                        autoplay: !0,
                        circular: !0,
                        indicatorDots: !0,
                        className: "swiper",
                        indicatorColor: "#ccc",
                        indicatorActiveColor: "#ea3855",
                        children: Object(N["jsx"])(h["SwiperItem"], {
                            className: "swiper-item",
                            children: Object(N["jsx"])(h["Image"], {
                                className: "img",
                                mode: "widthFix",
                                src: "http://cdn.meizhuan.cn/pic-go/takeout-banner-movie.png"
                            })
                        })
                    })
                }) ]
            }) : null;
        }), pe = function(e) {
            var t = Object(w["a"])(), n = t.miniProgram, c = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), a = c.showMt, i = c.showKfc, s = c.showMtYx, r = c.showDdDc, o = c.showDdJy, u = c.pddSubsidy, l = c.showCinema, d = c.miniServiceType, p = Object(b["d"])(function(e) {
                return e.takeout;
            }), f = p.showEle, O = Object(b["d"])(function(e) {
                return e.user;
            }), x = O.loginStatus, T = Object(b["d"])(function(e) {
                return e.user.agent;
            }), v = T.selfOrderConfirmNum, k = void 0 === v ? 0 : v, S = Object(m["useState"])(function() {
                var e = Array.isArray(g.a.getStorageSync(P["d"].BANNER_CACHE)) ? g.a.getStorageSync(P["d"].BANNER_CACHE) : [], t = e.every(function(e) {
                    return "bannerId" in e && "imageHref" in e && "openStatus" in e && "checkStatus" in e && "haveOrder" in e;
                });
                return t ? e : [];
            }), I = Object(E["a"])(S, 2), y = I[0], C = I[1], A = Object(m["useCallback"])(function(e) {
                e.forEach(function(e) {
                    if (2 === e.openStatus) switch (e.openPage) {
                      case 1:
                        e.show = f;
                        break;

                      case 2:
                        e.show = a;
                        break;

                      case 3:
                        e.show = l;
                        break;

                      case 4:
                        e.show = a;
                        break;

                      case 5:
                        e.show = !0;
                        break;

                      case 6:
                        e.show = a && s;
                        break;

                      case 7:
                        e.show = i;
                        break;

                      case 8:
                        e.show = o;
                        break;

                      case 9:
                        e.show = r;
                        break;

                      case 10:
                        e.show = u;
                        break;

                      default:
                        e.show = !1;
                        break;
                    } else e.show = !0;
                });
                var t = e.filter(function(e) {
                    return e.show;
                });
                g.a.setStorageSync(P["d"].BANNER_CACHE, t), C(t), console.log("filterItems:", t);
            }, [ u, l, r, o, f, i, a, s ]), M = Object(m["useCallback"])(function() {
                J["s"].fetchMpList().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if (0 !== +e.code) return g.a.showToast({
                        title: e.msg,
                        icon: "none"
                    }), !1;
                    e.list && e.list.length ? A(e.list) : (C([]), g.a.setStorageSync(P["d"].BANNER_CACHE, []));
                });
            }, [ A ]);
            Object(m["useEffect"])(function() {
                M();
            }, []), Object(j["usePullDownRefresh"])(M);
            var D = Object(m["useCallback"])(function(t) {
                if (x) {
                    if (1 !== +t.openStatus) {
                        if (2 === +t.openStatus) switch (t.openPage) {
                          case 1:
                            R["a"].openEleme();
                            break;

                          case 2:
                            R["a"].openMeituan();
                            break;

                          case 3:
                            R["a"].openMovie();
                            break;

                          case 4:
                            R["a"].openArrive();
                            break;

                          case 5:
                            R["a"].openClock();
                            break;

                          case 6:
                            R["a"].openMeituan("select");
                            break;

                          case 7:
                            Object(le["a"])("index");
                            break;

                          case 9:
                            R["a"].openDidi();
                            break;

                          case 10:
                            if (u) return void g.a.navigateTo({
                                url: "/pages/pdd_ten_million_subsidy/index"
                            });
                            R["a"].openTJP("pdd");
                            break;

                          default:
                            break;
                        }
                        if (3 === +t.openStatus) {
                            if (t.openMiniAppid === n.appId) {
                                var c, a = null !== (c = t.openMiniAppidPage) && void 0 !== c && c.startsWith("/") ? t.openMiniAppidPage : "/" + t.openMiniAppidPage;
                                return g.a.navigateTo({
                                    url: a
                                }), !1;
                            }
                            t.openMiniAppid && g.a.navigateToMiniProgram({
                                appId: t.openMiniAppid,
                                path: t.openMiniAppidPage,
                                fail: function(e) {
                                    "navigateToMiniProgram:fail cancel" !== e.errMsg && g.a.showToast({
                                        icon: "none",
                                        title: e.errMsg
                                    });
                                }
                            });
                        }
                        if (4 === +t.openStatus && t.openMiniAppidPage) {
                            var i = "/pages/webview/index?src=".concat(encodeURIComponent(t.openMiniAppidPage));
                            g.a.navigateTo({
                                url: i
                            });
                        }
                    }
                } else e.onLogin();
            }, [ x, n.appId, u, e ]);
            return 1 === d ? Object(N["jsx"])(m["Fragment"], {
                children: y.length ? Object(N["jsxs"])(h["View"], {
                    className: "module-swiper",
                    children: [ Object(N["jsx"])(h["View"], {
                        className: "swiper-placeholder"
                    }), Object(N["jsx"])(h["View"], {
                        className: "swiper-fixed",
                        children: Object(N["jsx"])(h["Swiper"], {
                            circular: !0,
                            indicatorDots: !0,
                            autoplay: !0,
                            className: "swiper",
                            indicatorColor: "#ccc",
                            indicatorActiveColor: "#fff",
                            children: y.map(function(e) {
                                return Object(N["jsx"])(m["Fragment"], {
                                    children: +e.checkStatus ? Object(N["jsx"])(m["Fragment"], {
                                        children: k >= e.haveOrder ? Object(N["jsx"])(h["SwiperItem"], {
                                            className: "item",
                                            onClick: function() {
                                                return D(e);
                                            },
                                            children: Object(N["jsx"])(h["Image"], {
                                                className: "image",
                                                mode: "widthFix",
                                                src: e.imageHref
                                            })
                                        }) : null
                                    }) : Object(N["jsx"])(V["a"], {
                                        children: k >= e.haveOrder ? Object(N["jsx"])(h["SwiperItem"], {
                                            className: "item",
                                            onClick: function() {
                                                return D(e);
                                            },
                                            children: Object(N["jsx"])(h["Image"], {
                                                className: "image",
                                                mode: "widthFix",
                                                src: e.imageHref
                                            })
                                        }) : null
                                    }, e.bannerId)
                                }, e.bannerId);
                            })
                        })
                    }) ]
                }) : null
            }) : [ 4, 5, 6 ].includes(d) ? Object(N["jsx"])(m["Fragment"], {
                children: y.length ? Object(N["jsxs"])(h["View"], {
                    className: "banner",
                    children: [ Object(N["jsxs"])(h["View"], {
                        className: "bg",
                        children: [ Object(N["jsx"])(h["View"], {
                            className: Z()("up-space", 4 === d ? "four" : "five")
                        }), Object(N["jsx"])(h["View"], {
                            className: Z()("down-space", 4 === d ? "four" : "five")
                        }) ]
                    }), Object(N["jsx"])(h["View"], {
                        className: "hover",
                        children: Object(N["jsx"])(h["Swiper"], {
                            autoplay: !0,
                            circular: !0,
                            indicatorDots: !0,
                            className: "swiper",
                            indicatorColor: "#ccc",
                            indicatorActiveColor: "#ea3855",
                            children: y.map(function(e) {
                                return Object(N["jsx"])(m["Fragment"], {
                                    children: +e.checkStatus ? Object(N["jsx"])(m["Fragment"], {
                                        children: k >= e.haveOrder ? Object(N["jsx"])(h["SwiperItem"], {
                                            className: "swiper-item",
                                            onClick: function() {
                                                return D(e);
                                            },
                                            children: Object(N["jsx"])(h["Image"], {
                                                className: "img",
                                                mode: "widthFix",
                                                src: e.imageHref
                                            })
                                        }) : null
                                    }) : Object(N["jsx"])(V["a"], {
                                        children: k >= e.haveOrder ? Object(N["jsx"])(h["SwiperItem"], {
                                            className: "swiper-item",
                                            onClick: function() {
                                                return D(e);
                                            },
                                            children: Object(N["jsx"])(h["Image"], {
                                                className: "img",
                                                mode: "widthFix",
                                                src: e.imageHref
                                            })
                                        }) : null
                                    })
                                }, e.bannerId);
                            })
                        })
                    }) ]
                }) : null
            }) : null;
        }, je = function(e) {
            return Object(N["jsx"])(V["a"], {
                fallback: Object(N["jsx"])(de, {}),
                children: Object(N["jsx"])(pe, Object(K["a"])({}, e))
            });
        }, ge = je, he = n(33), be = n(21), me = n(35), fe = (n(445), function() {
            var e = Object(b["c"])(), t = Object(m["useRef"])(""), n = Object(m["useRef"])(!1), c = Object(b["d"])(function(e) {
                return e.user;
            }), a = c.isMpUser, i = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), s = i.showMt, r = i.miniServiceType, o = Object(b["d"])(function(e) {
                return e.movie;
            }), u = o.filmList, l = o.timestamp, d = o.cityId, p = Object(m["useState"])([]), g = Object(E["a"])(p, 2), f = g[0], O = g[1], x = Object(m["useCallback"])(function() {
                var e = "/packageF/movie/detail/film/index?filmId=".concat(t.current);
                Object(j["navigateTo"])({
                    url: e
                });
            }, []), w = Object(m["useCallback"])(function(c) {
                t.current = c.filmId;
                var a = Object(be["a"])().valueOf();
                if (l && d && a - l < 18e5) x(); else {
                    var i = function() {
                        var t = {
                            type: "gcj02",
                            isHighAccuracy: !1
                        };
                        Object(j["getLocation"])(t).then(function(t) {
                            var c = t.latitude, a = t.longitude;
                            e(Object(he["d"])(c)), e(Object(he["e"])(a)), e(Object(he["i"])(Object(be["a"])().valueOf()));
                            var i = {
                                location: "".concat(a, ",").concat(c)
                            };
                            J["J"].getCity(i).then(function(e) {
                                return e.data;
                            }).then(function(t) {
                                if (0 == t.code) if (t.city = t.city || {}, d || t.city.cityId) if (!d || t.city.cityId) {
                                    if (!d && t.city.cityId) return e(Object(he["b"])(t.city.cityId)), e(Object(he["f"])(t.city.regionName)), 
                                    void x();
                                    if (d !== t.city.cityId) if (n.current) x(); else {
                                        var c = "切换城市", a = "检测到当前位于".concat(t.city.regionName, "，是否切换？");
                                        Object(j["showModal"])({
                                            title: c,
                                            content: a
                                        }).then(function(c) {
                                            var a = c.confirm;
                                            if (a) return e(Object(he["b"])(t.city.cityId)), e(Object(he["f"])(t.city.regionName)), 
                                            void x();
                                            n.current = !0, x();
                                        });
                                    } else x();
                                } else x(); else Object(j["navigateTo"])({
                                    url: "/packageF/movie/city/index"
                                }); else {
                                    var i = "CinemaAction.getCity: ".concat(t.msg);
                                    Object(j["showToast"])({
                                        title: i,
                                        icon: "none"
                                    });
                                }
                            });
                        });
                    };
                    Object(j["getSetting"])().then(function(e) {
                        return e.authSetting[me["b"]];
                    }).then(function(e) {
                        e ? i() : Object(j["authorize"])({
                            scope: me["b"]
                        }).then(i).catch(function() {
                            var e = "是否授权当前位置", t = "需要获取您的地理位置，请确认授权，否则地图功能将无法使用";
                            Object(j["showModal"])({
                                title: e,
                                content: t
                            }).then(function(e) {
                                var t = e.confirm;
                                t && Object(j["openSetting"])().then(function() {
                                    return w(c);
                                });
                            });
                        });
                    });
                }
            }, [ d, e, x, l ]);
            return Object(m["useEffect"])(function() {
                J["J"].getSysParams().then(function(e) {
                    return e.data;
                }).then(function(t) {
                    if (0 != t.code) return !1;
                    e(Object(he["h"])(t));
                });
            }, [ e ]), Object(m["useEffect"])(function() {
                var t = {
                    type: 1
                };
                J["J"].getFilmList(t).then(function(e) {
                    return e.data;
                }).then(function(t) {
                    t.list = t.list || [], e(Object(he["c"])(t.list));
                });
            }, [ e ]), Object(m["useEffect"])(function() {
                var e = {
                    type: 2
                };
                J["J"].getFilmList(e).then(function(e) {
                    return e.data;
                }).then(function(e) {
                    e.list = e.list || [], O(e.list);
                });
            }, []), Object(N["jsxs"])(h["View"], {
                className: "film-list-card",
                children: [ u.length && (1 === r && !a || [ 4, 5, 6 ].includes(r)) ? Object(N["jsx"])(h["View"], {
                    className: "card films",
                    children: Object(N["jsxs"])(h["View"], {
                        className: "container",
                        children: [ Object(N["jsxs"])(h["View"], {
                            className: "header",
                            children: [ Object(N["jsx"])(h["View"], {
                                className: "title",
                                children: "热映电影"
                            }), Object(N["jsxs"])(h["Navigator"], {
                                className: "extra",
                                url: "/pages/main/movie/index",
                                children: [ Object(N["jsxs"])(h["Text"], {
                                    className: "value",
                                    children: [ "全部", u.length, "部" ]
                                }), Object(N["jsx"])(h["Text"], {
                                    className: "icon-font iconfont-arrow"
                                }) ]
                            }) ]
                        }), Object(N["jsx"])(h["ScrollView"], {
                            scrollX: !0,
                            enableFlex: !0,
                            className: "body",
                            children: u.map(function(e) {
                                return Object(N["jsx"])(h["View"], {
                                    className: "item",
                                    onClick: function() {
                                        return w(e);
                                    },
                                    children: Object(N["jsxs"])(h["View"], {
                                        className: "content",
                                        children: [ Object(N["jsx"])(h["Image"], {
                                            src: e.pic,
                                            className: "pic",
                                            mode: "aspectFit",
                                            children: Object(N["jsxs"])(h["Text"], {
                                                className: "grade",
                                                children: [ e.grade, "分" ]
                                            })
                                        }), Object(N["jsx"])(h["View"], {
                                            className: "name",
                                            children: e.name
                                        }), Object(be["a"])(e.publishDate).isBefore(Object(be["a"])()) ? Object(N["jsx"])(h["View"], {
                                            className: "btn buy",
                                            children: "购票"
                                        }) : Object(N["jsx"])(h["View"], {
                                            className: "btn book",
                                            children: "预售"
                                        }) ]
                                    })
                                }, e.filmId);
                            })
                        }) ]
                    })
                }) : null, f.length && (!a || [ 4, 5, 6 ].includes(r) && !s) ? Object(N["jsx"])(h["View"], {
                    className: "card films coming",
                    children: Object(N["jsxs"])(h["View"], {
                        className: "container",
                        children: [ Object(N["jsxs"])(h["View"], {
                            className: "header",
                            children: [ Object(N["jsx"])(h["View"], {
                                className: "title",
                                children: "即将上映"
                            }), Object(N["jsxs"])(h["View"], {
                                className: "extra",
                                children: [ Object(N["jsxs"])(h["Text"], {
                                    className: "value",
                                    children: [ "全部", f.length, "部" ]
                                }), Object(N["jsx"])(h["Text"], {
                                    className: "icon-font iconfont-arrow"
                                }) ]
                            }) ]
                        }), Object(N["jsx"])(h["ScrollView"], {
                            scrollX: !0,
                            enableFlex: !0,
                            className: "body",
                            children: f.map(function(e) {
                                return Object(N["jsx"])(h["View"], {
                                    className: "item",
                                    onClick: function() {
                                        return w(e);
                                    },
                                    children: Object(N["jsxs"])(h["View"], {
                                        className: "content",
                                        children: [ Object(N["jsx"])(h["Image"], {
                                            src: e.pic,
                                            className: "pic",
                                            mode: "aspectFit",
                                            children: Object(N["jsxs"])(h["Text"], {
                                                className: "grade",
                                                children: [ e.grade, "分" ]
                                            })
                                        }), Object(N["jsx"])(h["View"], {
                                            className: "name",
                                            children: e.name
                                        }), Object(N["jsx"])(h["View"], {
                                            className: "btn disabled",
                                            children: "暂无"
                                        }) ]
                                    })
                                }, e.filmId);
                            })
                        }) ]
                    })
                }) : null ]
            });
        }), Oe = function() {
            var e = Object(Q["a"])(), t = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), n = t.showCinema, c = t.showIndexHot;
            return n && (e || c) ? Object(N["jsx"])(fe, {}) : null;
        }, xe = (n(446), function() {
            var e = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), t = e.showMt, n = e.showDdDc, c = e.noMpShowMt, a = e.miniServiceType, i = Object(b["d"])(function(e) {
                return e.takeout;
            }), s = i.showEle, r = Object(b["d"])(function(e) {
                return e.user;
            }), o = r.isMpUser, u = Object(m["useState"])(null), l = Object(E["a"])(u, 2), d = l[0], p = l[1];
            return Object(m["useEffect"])(function() {
                J["T"].fetchWaimaiMoneyAndNum().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    0 === e.code ? p(e) : Object(j["showToast"])({
                        title: e.msg,
                        icon: "none"
                    });
                });
            }, []), d ? 1 === a && o ? null : 6 === a ? Object(N["jsxs"])(h["View"], {
                className: "takeout-coupon shadow",
                children: [ n ? Object(N["jsxs"])(h["View"], {
                    className: "item",
                    onClick: R["a"].openDidi,
                    children: [ Object(N["jsxs"])(h["View"], {
                        className: "left",
                        children: [ Object(N["jsx"])(h["Image"], {
                            mode: "widthFix",
                            className: "label di-di",
                            src: "http://cdn.meizhuan.cn/pic-go/didi-20211130.png"
                        }), Object(N["jsx"])(h["Image"], {
                            mode: "widthFix",
                            className: "mark di-di",
                            src: "http://cdn.meizhuan.cn/pic-go/logo-20211130.png"
                        }), Object(N["jsxs"])(h["View"], {
                            className: "content",
                            children: [ Object(N["jsx"])(h["View"], {
                                className: "title",
                                children: "滴滴打车出行礼包"
                            }), Object(N["jsxs"])(h["View"], {
                                className: "info",
                                children: [ Object(N["jsx"])(h["Text"], {
                                    className: "price",
                                    children: d.dd
                                }), Object(N["jsx"])(h["Text"], {
                                    className: "unit",
                                    children: "元"
                                }), Object(N["jsxs"])(h["Text"], {
                                    className: "tip",
                                    children: [ "今日仅剩", d.ddNum, "个" ]
                                }) ]
                            }) ]
                        }) ]
                    }), Object(N["jsx"])(h["View"], {
                        className: "right",
                        children: Object(N["jsx"])(h["View"], {
                            className: "btn red",
                            children: "免费领取"
                        })
                    }) ]
                }) : null, Object(N["jsxs"])(h["View"], {
                    className: "row",
                    children: [ s ? Object(N["jsx"])(V["a"], {
                        children: Object(N["jsx"])(h["View"], {
                            className: "item",
                            onClick: function() {
                                return R["a"].openEleme("waimai");
                            },
                            children: Object(N["jsxs"])(h["View"], {
                                className: "left",
                                children: [ Object(N["jsx"])(h["Image"], {
                                    mode: "widthFix",
                                    className: "label ele",
                                    src: "https://mpstatic.qingting123.com/img/take-out/label-ele.png"
                                }), Object(N["jsx"])(h["Image"], {
                                    mode: "widthFix",
                                    className: "mark ele",
                                    src: "https://mpstatic.qingting123.com/img/take-out/mark-ele.png"
                                }), Object(N["jsxs"])(h["View"], {
                                    className: "content",
                                    children: [ Object(N["jsx"])(h["View"], {
                                        className: "title",
                                        children: "惊喜红包"
                                    }), Object(N["jsxs"])(h["View"], {
                                        className: "info",
                                        children: [ Object(N["jsx"])(h["Text"], {
                                            className: "price",
                                            children: d.ele
                                        }), Object(N["jsx"])(h["Text"], {
                                            className: "unit",
                                            children: "元"
                                        }), Object(N["jsx"])(h["View"], {
                                            className: "small-btn",
                                            children: "免费领取"
                                        }) ]
                                    }) ]
                                }) ]
                            })
                        })
                    }) : null, t && (o || !o && !c) ? Object(N["jsx"])(h["View"], {
                        className: "item",
                        onClick: function() {
                            return R["a"].openMeituan("waimai");
                        },
                        children: Object(N["jsxs"])(h["View"], {
                            className: "left",
                            children: [ Object(N["jsx"])(h["Image"], {
                                mode: "widthFix",
                                className: "label mt",
                                src: "https://mpstatic.qingting123.com/img/take-out/label-mt.png"
                            }), Object(N["jsx"])(h["Image"], {
                                mode: "widthFix",
                                className: "mark mt",
                                src: "https://mpstatic.qingting123.com/img/take-out/mark-mt.png"
                            }), Object(N["jsxs"])(h["View"], {
                                className: "content",
                                children: [ Object(N["jsx"])(h["View"], {
                                    className: "title",
                                    children: "惊喜红包"
                                }), Object(N["jsxs"])(h["View"], {
                                    className: "info",
                                    children: [ Object(N["jsx"])(h["Text"], {
                                        className: "price",
                                        children: d.mt
                                    }), Object(N["jsx"])(h["Text"], {
                                        className: "unit",
                                        children: "元"
                                    }), Object(N["jsx"])(h["View"], {
                                        className: "small-btn",
                                        children: "免费领取"
                                    }) ]
                                }) ]
                            }) ]
                        })
                    }) : null ]
                }) ]
            }) : Object(N["jsxs"])(h["View"], {
                className: "takeout-coupon shadow",
                children: [ s ? Object(N["jsx"])(V["a"], {
                    children: Object(N["jsxs"])(h["View"], {
                        className: "item",
                        onClick: function() {
                            return R["a"].openEleme("waimai");
                        },
                        children: [ Object(N["jsxs"])(h["View"], {
                            className: "left",
                            children: [ Object(N["jsx"])(h["Image"], {
                                mode: "widthFix",
                                className: "label ele",
                                src: "https://mpstatic.qingting123.com/img/take-out/label-ele.png"
                            }), Object(N["jsx"])(h["Image"], {
                                mode: "widthFix",
                                className: "mark ele",
                                src: "https://mpstatic.qingting123.com/img/take-out/mark-ele.png"
                            }), Object(N["jsxs"])(h["View"], {
                                className: "content",
                                children: [ Object(N["jsx"])(h["View"], {
                                    className: "title",
                                    children: "饿了么天天抢红包"
                                }), Object(N["jsxs"])(h["View"], {
                                    className: "info",
                                    children: [ Object(N["jsx"])(h["Text"], {
                                        className: "price",
                                        children: d.ele
                                    }), Object(N["jsx"])(h["Text"], {
                                        className: "unit",
                                        children: "元"
                                    }), Object(N["jsxs"])(h["Text"], {
                                        className: "tip",
                                        children: [ "今日仅剩", d.eleNum, "个" ]
                                    }) ]
                                }) ]
                            }) ]
                        }), Object(N["jsx"])(h["View"], {
                            className: "right",
                            children: Object(N["jsx"])(h["View"], {
                                className: "btn red",
                                children: "免费领取"
                            })
                        }) ]
                    })
                }) : null, t && (o || !o && !c) ? Object(N["jsxs"])(h["View"], {
                    className: "item",
                    onClick: function() {
                        return R["a"].openMeituan("waimai");
                    },
                    children: [ Object(N["jsxs"])(h["View"], {
                        className: "left",
                        children: [ Object(N["jsx"])(h["Image"], {
                            mode: "widthFix",
                            className: "label mt",
                            src: "https://mpstatic.qingting123.com/img/take-out/label-mt.png"
                        }), Object(N["jsx"])(h["Image"], {
                            mode: "widthFix",
                            className: "mark mt",
                            src: "https://mpstatic.qingting123.com/img/take-out/mark-mt.png"
                        }), Object(N["jsxs"])(h["View"], {
                            className: "content",
                            children: [ Object(N["jsx"])(h["View"], {
                                className: "title",
                                children: "美团外卖红包"
                            }), Object(N["jsxs"])(h["View"], {
                                className: "info",
                                children: [ Object(N["jsx"])(h["Text"], {
                                    className: "price",
                                    children: d.mt
                                }), Object(N["jsx"])(h["Text"], {
                                    className: "unit",
                                    children: "元"
                                }), Object(N["jsxs"])(h["Text"], {
                                    className: "tip",
                                    children: [ "今日仅剩", d.mtNum, "个" ]
                                }) ]
                            }) ]
                        }) ]
                    }), Object(N["jsx"])(h["View"], {
                        className: "right",
                        children: Object(N["jsx"])(h["View"], {
                            className: "btn red",
                            children: "免费领取"
                        })
                    }) ]
                }) : null ]
            }) : null;
        }), we = n(22), Ne = n.n(we), Te = n(50), ve = (n(447), {
            shownInWeapp: 0,
            eventPageUrl: "",
            eventPopImgUrl: "",
            indexEventText: "",
            eventPageTitle: ""
        }), ke = function(e) {
            var t = e.serviceDomain, n = Object(m["useState"])(!1), c = Object(E["a"])(n, 2), a = c[0], i = c[1], s = Object(m["useState"])(ve), r = Object(E["a"])(s, 2), o = r[0], u = r[1], l = Object(b["d"])(function(e) {
                return e.user.mpUser;
            }), d = l.mpWxOpenId, p = Object(m["useCallback"])(function() {
                i(!1);
                var e = Ne()(o.eventPageUrl, !0);
                e.set("hostname", t);
                var n = we["qs"].stringify({
                    openId: d,
                    t: Object(be["a"])().valueOf().toString()
                });
                e.set("query", n);
                var c = "/pages/webview/index?src=".concat(encodeURIComponent(e.href));
                Object(j["navigateTo"])({
                    url: c
                });
            }, [ o.eventPageUrl, d, t ]);
            return Object(m["useEffect"])(function() {
                Te["a"].getEventTitleAndUrl().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    e.shownInWeapp && u(e);
                });
            }, []), Object(m["useEffect"])(function() {
                o.eventPopImgUrl && J["f"].isClicked().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    e.isClicked || i(!0);
                });
            }, [ o.eventPopImgUrl ]), Object(N["jsxs"])(h["View"], {
                className: "activity",
                children: [ 1 == o.shownInWeapp && Object(N["jsx"])(h["View"], {
                    className: "activity-bar",
                    onClick: p,
                    children: Object(N["jsx"])(h["RichText"], {
                        className: "link",
                        nodes: o.indexEventText
                    })
                }), Object(N["jsx"])(z["g"], {
                    isOpened: a,
                    onClose: function() {
                        return i(!1);
                    },
                    children: Object(N["jsx"])(h["Image"], {
                        mode: "widthFix",
                        style: "width:100%;",
                        src: o.eventPopImgUrl,
                        onClick: p
                    })
                }) ]
            });
        }, Se = function() {
            var e = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), t = e.miniServiceType, n = Object(b["d"])(function(e) {
                return e.user;
            }), c = n.trusted, a = n.loginStatus, i = Object(m["useState"])(""), s = Object(E["a"])(i, 2), r = s[0], o = s[1];
            return Object(m["useEffect"])(function() {
                J["O"].getMiniServiceDomain().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    e.serviceDomain && o(e.serviceDomain);
                });
            }, []), c && a && r ? 2 === t || 3 === t || 4 === t || 5 === t || 6 === t ? null : Object(N["jsx"])(V["b"], {
                children: Object(N["jsx"])(V["a"], {
                    children: Object(N["jsx"])(ke, {
                        serviceDomain: r
                    })
                })
            }) : null;
        }, Ie = function(e) {
            var t = Object(b["c"])(), n = Object(b["d"])(function(e) {
                return e.user;
            }), c = n.loginStatus, a = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), r = a.nickName, o = a.miniServiceType, u = function() {
                if (!c) return !1;
                J["G"].getSessionAgentInfo().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    return 0 != e.code ? (Object(j["showToast"])({
                        title: e.msg,
                        icon: "none"
                    }), !1) : e.agent ? (t(Object(W["a"])(e.agent)), void Object(j["showToast"])({
                        title: "初始化成功，请重新分享",
                        icon: "none"
                    })) : (Object(j["showToast"])({
                        title: "未获取到代理信息",
                        icon: "none"
                    }), !1);
                });
            }, l = function() {
                var e = Object(s["a"])(i.a.mark(function e() {
                    var t, n, c, a, s, r, o;
                    return i.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            return e.next = 2, Object(j["getUserProfile"])({
                                lang: "zh_CN",
                                desc: "获取用户信息"
                            });

                          case 2:
                            return t = e.sent, n = t.userInfo, e.next = 6, Object(j["login"])();

                          case 6:
                            return c = e.sent, a = c.code, s = {
                                code: a,
                                isNeedCreateAgent: 1,
                                encryptedData: JSON.stringify(n)
                            }, Object(j["showLoading"])({
                                title: "正在初始化",
                                mask: !0
                            }), e.next = 12, J["S"].saveXcxUserInfoNew(s).then(function(e) {
                                return e.data;
                            });

                          case 12:
                            if (r = e.sent, Object(j["hideLoading"])(), 1 == r.code || 2 == r.code) {
                                e.next = 18;
                                break;
                            }
                            return o = r.msg || "初始化失败", Object(j["showToast"])({
                                title: o,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 18:
                            Object(B["f"])(r), u();

                          case 20:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }));
                return function() {
                    return e.apply(this, arguments);
                };
            }();
            return 1 !== o ? null : Object(N["jsxs"])(h["View"], {
                className: "miniServiceType-1",
                children: [ Object(N["jsx"])(U["a"], {
                    color: "#ffffff",
                    background: F["a"],
                    renderLeft: Object(N["jsx"])(h["View"], {
                        className: "nav-bar__left",
                        children: Object(N["jsx"])(h["Text"], {
                            className: "nickname",
                            children: r
                        })
                    }),
                    renderCenter: Object(N["jsx"])(V["a"], {
                        children: Object(N["jsxs"])(h["View"], {
                            className: "nav-bar-search",
                            onClick: function() {
                                return R["a"].openMallRebate();
                            },
                            children: [ Object(N["jsx"])(z["l"], {
                                size: "15",
                                color: "#666",
                                value: "search",
                                className: "nav-bar-search__icon"
                            }), Object(N["jsx"])(h["View"], {
                                className: "nav-bar-search__input",
                                children: Object(N["jsx"])(h["Text"], {
                                    children: "搜索你想要的商品"
                                })
                            }) ]
                        })
                    })
                }), Object(N["jsx"])(ge, {
                    onLogin: e.onLogin
                }), Object(N["jsx"])(ue, {
                    onLogin: e.onLogin,
                    onAddTip: e.onAddTip,
                    onGetUserProfile: l
                }), Object(N["jsx"])(Se, {}), Object(N["jsx"])(xe, {}), Object(N["jsx"])(Oe, {}), Object(N["jsx"])(G["a"], {}), Object(N["jsx"])(q["a"], {}) ]
            });
        }, ye = Object(m["memo"])(Ie, L.a), Ce = n(84), Pe = (n(448), n(449), function() {
            var e = Object(b["d"])(function(e) {
                return e.movie;
            }), t = e.timestamp, n = e.longitude, c = e.latitude, a = Object(m["useRef"])(null), i = Object(m["useState"])([]), s = Object(E["a"])(i, 2), r = s[0], o = s[1], u = Object(m["useCallback"])(function(e) {
                var t;
                if (null !== (t = a.current) && void 0 !== t && t.lat && a.current.lng) {
                    var n = e.shopInfo.shopId, c = e.dealBaseInfo.dealGroupId, i = {
                        shopId: n,
                        dealGroupId: c
                    }, s = we["qs"].stringify(i), r = "/pages/arrive/shop/index?".concat(s);
                    Object(j["navigateTo"])({
                        url: r
                    });
                } else R["a"].openArrive();
            }, []);
            return Object(m["useEffect"])(function() {
                a.current = {
                    page: 1,
                    cat0Id: 226,
                    sortType: 1,
                    pageType: 1
                }, t && n && c && Object(be["a"])().valueOf() - t < 864e5 && (a.current.lat = c, 
                a.current.lng = n), J["U"].getShops(a.current).then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if (0 == e.code) {
                        e.content = e.content || [];
                        var t = e.content.map(function(e) {
                            var t = e.dealBaseInfo.marketPrice, n = e.dealBaseInfo.finalPrice;
                            return e.dealBaseInfo.quanValue = t - n, e;
                        });
                        o(t);
                    } else {
                        var n = "MtfxAction.getShops: ".concat(e.msg);
                        Object(j["showToast"])({
                            title: n,
                            icon: "none"
                        });
                    }
                });
            }, [ c, n, t ]), r.length ? Object(N["jsx"])(h["View"], {
                id: "arrive-card",
                className: "card",
                children: Object(N["jsxs"])(h["View"], {
                    className: "container",
                    children: [ Object(N["jsxs"])(h["View"], {
                        className: "header",
                        children: [ Object(N["jsx"])(h["View"], {
                            className: "title",
                            children: "吃喝玩乐"
                        }), Object(N["jsxs"])(h["View"], {
                            className: "extra",
                            onClick: R["a"].openArrive,
                            children: [ Object(N["jsx"])(h["Text"], {
                                className: "value",
                                children: "附近店铺"
                            }), Object(N["jsx"])(h["Text"], {
                                className: "icon-font iconfont-arrow"
                            }) ]
                        }) ]
                    }), Object(N["jsx"])(h["View"], {
                        className: "body",
                        children: r.slice(0, 3).map(function(e) {
                            return Object(N["jsx"])(h["View"], {
                                className: "item",
                                onClick: function() {
                                    return u(e);
                                },
                                children: Object(N["jsxs"])(h["View"], {
                                    className: "content",
                                    children: [ Object(N["jsx"])(h["Image"], {
                                        className: "cover",
                                        mode: "aspectFit",
                                        src: e.dealBaseInfo.defaultPic,
                                        children: Object(N["jsx"])(h["View"], {
                                            className: "bottom",
                                            children: e.shopInfo.shopName
                                        })
                                    }), Object(N["jsxs"])(h["View"], {
                                        className: "info",
                                        children: [ Object(N["jsx"])(h["View"], {
                                            className: "title",
                                            children: e.dealBaseInfo.dealTitle
                                        }), Object(N["jsxs"])(h["View"], {
                                            className: "price",
                                            children: [ Object(N["jsxs"])(h["View"], {
                                                className: "origin",
                                                children: [ Object(N["jsx"])(h["Text"], {
                                                    children: "原价￥"
                                                }), Object(N["jsx"])(h["Text"], {
                                                    children: e.dealBaseInfo.marketPrice / 100
                                                }) ]
                                            }), Object(N["jsxs"])(h["View"], {
                                                className: "floor",
                                                children: [ Object(N["jsx"])(h["View"], {
                                                    className: "label",
                                                    children: "领券￥"
                                                }), Object(N["jsx"])(h["View"], {
                                                    className: "number",
                                                    children: e.dealBaseInfo.finalPrice / 100
                                                }) ]
                                            }) ]
                                        }) ]
                                    }) ]
                                })
                            }, e.dealBaseInfo.dealGroupId);
                        })
                    }) ]
                })
            }) : null;
        }), Ae = function() {
            var e = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), t = e.showMt, n = e.showIndexChwl;
            return t && n ? Object(N["jsx"])(Pe, {}) : null;
        }, Ve = function(e) {
            var t = Object(b["c"])(), n = Object(b["d"])(function(e) {
                return e.user;
            }), c = n.loginStatus, a = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), r = a.nickName, o = a.miniServiceType, u = function() {
                if (!c) return !1;
                J["G"].getSessionAgentInfo().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    return 0 != e.code ? (Object(j["showToast"])({
                        title: e.msg,
                        icon: "none"
                    }), !1) : e.agent ? (t(Object(W["a"])(e.agent)), void Object(j["showToast"])({
                        title: "初始化成功，请重新分享",
                        icon: "none"
                    })) : (Object(j["showToast"])({
                        title: "未获取到代理信息",
                        icon: "none"
                    }), !1);
                });
            }, l = function() {
                var e = Object(s["a"])(i.a.mark(function e() {
                    var t, n, c, a, s, r, o;
                    return i.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            return e.next = 2, Object(j["getUserProfile"])({
                                lang: "zh_CN",
                                desc: "获取用户信息"
                            });

                          case 2:
                            return t = e.sent, n = t.userInfo, e.next = 6, Object(j["login"])();

                          case 6:
                            return c = e.sent, a = c.code, s = {
                                code: a,
                                isNeedCreateAgent: 1,
                                encryptedData: JSON.stringify(n)
                            }, Object(j["showLoading"])({
                                title: "正在初始化",
                                mask: !0
                            }), e.next = 12, J["S"].saveXcxUserInfoNew(s).then(function(e) {
                                return e.data;
                            });

                          case 12:
                            if (r = e.sent, Object(j["hideLoading"])(), 1 == r.code || 2 == r.code) {
                                e.next = 18;
                                break;
                            }
                            return o = r.msg || "初始化失败", Object(j["showToast"])({
                                title: o,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 18:
                            Object(B["f"])(r), u();

                          case 20:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }));
                return function() {
                    return e.apply(this, arguments);
                };
            }();
            return 6 !== o ? null : Object(N["jsxs"])(h["View"], {
                className: "miniServiceType-6",
                children: [ Object(N["jsx"])(U["a"], {
                    color: "#ffffff",
                    title: r,
                    background: F["b"]
                }), Object(N["jsx"])(ge, {
                    onLogin: e.onLogin
                }), Object(N["jsx"])(ue, {
                    onLogin: e.onLogin,
                    onAddTip: e.onAddTip,
                    onGetUserProfile: l
                }), Object(N["jsx"])(xe, {}), Object(N["jsx"])(G["a"], {}), Object(N["jsx"])(Oe, {}), Object(N["jsx"])(Ae, {}), Object(N["jsx"])(Ce["a"], {}) ]
            });
        }, Ee = Ve, Me = (n(450), function(e) {
            Object(l["a"])(n, e);
            var t = Object(d["a"])(n);
            function n(e) {
                return Object(r["a"])(this, n), t.call(this, e);
            }
            return Object(o["a"])(n, [ {
                key: "shouldComponentUpdate",
                value: function(e) {
                    return this.props.onSearch !== e.onSearch;
                }
            }, {
                key: "render",
                value: function() {
                    var e = this.props.onSearch;
                    return Object(N["jsx"])(h["View"], {
                        className: "search-box",
                        children: Object(N["jsxs"])(h["View"], {
                            className: "content",
                            onClick: e,
                            children: [ Object(N["jsx"])(h["Text"], {
                                className: "iconfont icon-search"
                            }), Object(N["jsx"])(h["Text"], {
                                className: "label",
                                children: "搜索你想要的商品"
                            }) ]
                        })
                    });
                }
            } ]), n;
        }(m["Component"]));
        Object(p["a"])(Me, "defaultProps", {
            onSearch: function() {}
        });
        var De, He, _e, Le, ze, Re, Ue, Fe, Ge, Be, We = Me, qe = n(44), Je = n(142), Ke = function(e) {
            return {
                type: Je["a"],
                goodsCatId: e
            };
        }, Xe = n(54), Ye = (n(451), n(452), function(e) {
            var t = e.user, n = t.trusted, c = t.currentWeappMp, a = c.miniServiceType, i = c.fanType;
            return {
                trusted: n,
                miniServiceType: a,
                fanType: i
            };
        }), $e = function() {
            return {};
        }, Ze = (De = Object(b["b"])(Ye, $e), De((Le = _e = function(e) {
            Object(l["a"])(n, e);
            var t = Object(d["a"])(n);
            function n(e) {
                var c;
                return Object(r["a"])(this, n), c = t.call(this, e), c.state = {}, c.groupNav = [ {
                    key: "zzkt",
                    type: "group",
                    title: "正在开团",
                    desc: "抢到赚到"
                }, {
                    key: "ktyg",
                    type: "group",
                    title: "开团预告",
                    desc: "提前鲜知"
                }, {
                    key: "qbtp",
                    type: "group",
                    title: "全部团品",
                    desc: "物美价廉"
                } ], c;
            }
            return Object(o["a"])(n, [ {
                key: "shouldComponentUpdate",
                value: function(e) {
                    return this.props.activeIndex !== e.activeIndex || (this.props.trusted !== e.trusted || (this.props.miniServiceType !== e.miniServiceType || (this.props.fanType !== e.fanType || this.props.onItemClick !== e.onItemClick)));
                }
            }, {
                key: "render",
                value: function() {
                    var e = this.props, t = e.onItemClick, n = e.activeIndex;
                    return Object(N["jsx"])(h["View"], {
                        className: "text-nav",
                        children: this.groupNav.map(function(e, c) {
                            return Object(N["jsxs"])(h["View"], {
                                className: Z()("item", {
                                    active: n === c
                                }),
                                onClick: function() {
                                    return t(e);
                                },
                                children: [ Object(N["jsx"])(h["View"], {
                                    className: "title",
                                    children: e.title
                                }), Object(N["jsx"])(h["View"], {
                                    className: "desc",
                                    children: e.desc
                                }) ]
                            }, e.key);
                        })
                    });
                }
            } ]), n;
        }(m["Component"]), Object(p["a"])(_e, "defaultProps", {
            activeIndex: 0,
            trusted: !1,
            miniServiceType: 0,
            fanType: 0,
            onItemClick: function() {}
        }), He = Le)) || He), Qe = Ze, et = (n(453), function(e) {
            var t = e.user;
            return {
                user: t
            };
        }), tt = function(e) {
            return {
                onUpdateGoodsCatId: function(t) {
                    e(Ke(t));
                }
            };
        }, nt = (ze = Object(b["b"])(et, tt), ze((Fe = Ue = function(e) {
            Object(l["a"])(n, e);
            var t = Object(d["a"])(n);
            function n(e) {
                var c;
                return Object(r["a"])(this, n), c = t.call(this, e), Object(p["a"])(Object(u["a"])(c), "getTuanGoodsCatList", Object(s["a"])(i.a.mark(function e() {
                    var t, n, a;
                    return i.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            return e.next = 2, Xe["c"].fetchCatList().then(function(e) {
                                return e.data;
                            });

                          case 2:
                            if (t = e.sent, 0 === t.code) {
                                e.next = 5;
                                break;
                            }
                            return e.abrupt("return", !1);

                          case 5:
                            if (n = t.data.goodsCatList, n.length) {
                                e.next = 8;
                                break;
                            }
                            return e.abrupt("return", !1);

                          case 8:
                            a = n.filter(function(e) {
                                return !!e.catImgMedias && !!e.catImgMedias.length;
                            }).map(function(e) {
                                return {
                                    key: "goodsCatId-".concat(e.goodsCatId),
                                    icon: e.catImgMedias[0].mediaUrl,
                                    label: e.catName
                                };
                            }), c.setState({
                                catList: a.splice(0, 10)
                            });

                          case 10:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))), Object(p["a"])(Object(u["a"])(c), "onItemClick", function(e) {
                    if (0 === e.indexOf("goodsCatId-")) {
                        var t = e.split("-")[1];
                        c.props.onUpdateGoodsCatId(t);
                        var n = "/pages/main/group/index";
                        return g.a.switchTab({
                            url: n
                        }), !1;
                    }
                    if ("allGroup" === e) {
                        var a = "/pages/main/group/index";
                        return g.a.switchTab({
                            url: a
                        }), !1;
                    }
                }), c.state = {
                    catList: []
                }, c.showNewFree = !1, c.ddPidId = "", c;
            }
            return Object(o["a"])(n, [ {
                key: "componentDidMount",
                value: function() {
                    var e = Object(s["a"])(i.a.mark(function e() {
                        var t;
                        return i.a.wrap(function(e) {
                            while (1) switch (e.prev = e.next) {
                              case 0:
                                if (t = this.props.user.currentWeappMp, 2 !== t.miniServiceType) {
                                    e.next = 4;
                                    break;
                                }
                                return e.next = 4, this.getTuanGoodsCatList();

                              case 4:
                              case "end":
                                return e.stop();
                            }
                        }, e, this);
                    }));
                    function t() {
                        return e.apply(this, arguments);
                    }
                    return t;
                }()
            }, {
                key: "shouldComponentUpdate",
                value: function(e, t) {
                    return this.state.catList.length !== t.catList.length || this.props.onLogin !== e.onLogin;
                }
            }, {
                key: "render",
                value: function() {
                    var e = this, t = this.state.catList;
                    return t.length ? Object(N["jsx"])(h["View"], {
                        className: "component-icon-menu",
                        children: t.map(function(t) {
                            return Object(N["jsxs"])(h["View"], {
                                className: "item",
                                onClick: function() {
                                    return e.onItemClick(t.key);
                                },
                                children: [ Object(N["jsx"])(h["Image"], {
                                    className: "icon",
                                    src: t.icon
                                }), Object(N["jsx"])(h["Text"], {
                                    className: "label",
                                    children: t.label
                                }) ]
                            }, t.key);
                        })
                    }) : Object(N["jsx"])(h["View"], {
                        className: "component-space"
                    });
                }
            } ]), n;
        }(m["Component"]), Object(p["a"])(Ue, "defaultProps", {
            onLogin: function() {}
        }), Re = Fe)) || Re), ct = nt, at = n(25), it = (n(454), function(e) {
            var t = e.user;
            return {
                user: t
            };
        }), st = function() {
            return {};
        }, rt = (Ge = Object(b["b"])(it, st), Ge(Be = function(e) {
            Object(l["a"])(n, e);
            var t = Object(d["a"])(n);
            function n(e) {
                var c;
                return Object(r["a"])(this, n), c = t.call(this, e), Object(p["a"])(Object(u["a"])(c), "openDetail", function() {
                    return Object(qe["b"])(c.props.goods);
                }), c;
            }
            return Object(o["a"])(n, [ {
                key: "shouldComponentUpdate",
                value: function(e) {
                    return this.props.goods.tuanGoodsId !== e.goods.tuanGoodsId;
                }
            }, {
                key: "render",
                value: function() {
                    var e = this.props.goods, t = this.props.user.agent.agentExtendType, n = Z()("red-number", {
                        small: !!e.price && e.price.toString().length > 5
                    });
                    return Object(N["jsx"])(h["View"], {
                        className: "group-item",
                        onClick: this.openDetail,
                        children: Object(N["jsxs"])(h["View"], {
                            className: "content",
                            children: [ e.tagImg ? Object(N["jsx"])(h["Image"], {
                                className: "tag-img",
                                src: e.tagImg,
                                mode: "aspectFill",
                                lazyLoad: !0
                            }) : null, Object(N["jsx"])(h["View"], {
                                className: "img-wrapper",
                                children: Object(N["jsx"])(h["Image"], {
                                    className: "main-img",
                                    src: e.mainImg,
                                    mode: "widthFix",
                                    lazyLoad: !0
                                })
                            }), Object(N["jsxs"])(h["View"], {
                                className: "info",
                                children: [ Object(N["jsx"])(h["View"], {
                                    className: "title",
                                    children: Object(N["jsx"])(h["Text"], {
                                        className: "text",
                                        children: e.goodsTitle
                                    })
                                }), Object(N["jsxs"])(h["View"], {
                                    className: "count",
                                    children: [ Object(N["jsxs"])(h["View"], {
                                        className: "progress",
                                        children: [ Object(N["jsx"])(h["View"], {
                                            className: "bg"
                                        }), Object(N["jsx"])(h["View"], {
                                            className: "inner",
                                            style: {
                                                width: "".concat(e.saleRate, "%")
                                            }
                                        }), Object(N["jsxs"])(h["Text"], {
                                            className: "label",
                                            children: [ "已售", e.saleRate, "%" ]
                                        }) ]
                                    }), Object(N["jsxs"])(h["Text"], {
                                        className: "stock",
                                        children: [ "限量", e.stock, "件" ]
                                    }) ]
                                }), Object(N["jsxs"])(h["View"], {
                                    className: "price-btn",
                                    children: [ Object(N["jsxs"])(h["View"], {
                                        className: "price",
                                        children: [ Object(N["jsx"])(h["Text"], {
                                            className: "red-unit",
                                            children: "￥"
                                        }), Object(N["jsx"])(h["Text"], {
                                            className: n,
                                            children: e.price
                                        }), Object(N["jsxs"])(h["Text"], {
                                            className: "gray-number",
                                            children: [ "￥", e.priceOrigin ]
                                        }) ]
                                    }), 1 === e.coming ? Object(N["jsx"])(h["View"], {
                                        className: "btn disabled",
                                        children: 31 === t || 41 === t ? Object(N["jsxs"])(h["Text"], {
                                            children: [ "赚￥$", e.goodsCommission ]
                                        }) : Object(N["jsx"])(h["Text"], {
                                            children: "未开始"
                                        })
                                    }) : Object(N["jsx"])(h["View"], {
                                        className: "btn active",
                                        children: 31 === t || 41 === t ? Object(N["jsxs"])(h["Text"], {
                                            children: [ "赚￥$", e.goodsCommission ]
                                        }) : Object(N["jsx"])(h["Text"], {
                                            children: "立即抢"
                                        })
                                    }) ]
                                }) ]
                            }) ]
                        })
                    });
                }
            } ]), n;
        }(m["Component"])) || Be);
        rt.defaultProps = {
            goods: {}
        }, rt.propType = {
            goods: x.a.object
        };
        var ot, ut, lt = rt, dt = n(28), pt = function(e) {
            var t = e.coming, n = Object(m["useState"])(1), c = Object(E["a"])(n, 2), a = c[0], i = c[1], s = Object(m["useState"])([]), r = Object(E["a"])(s, 2), o = r[0], u = r[1], l = Object(m["useState"])(""), d = Object(E["a"])(l, 2), p = d[0], g = d[1];
            return Object(m["useEffect"])(function() {
                if (a) {
                    g("loading");
                    var e = {
                        coming: t,
                        pageNum: a,
                        pageSize: 10,
                        sortType: "",
                        goodsCatId: "",
                        goodsTitle: ""
                    };
                    Xe["c"].fetchList(e).then(function(e) {
                        return e.data;
                    }).then(function(e) {
                        if (0 !== e.code) return Object(j["showToast"])({
                            title: e.msg,
                            icon: "none"
                        }), !1;
                        var n = e.data.tuanGoodsList.map(function(n) {
                            if (n.coming = t, n.saleRate = Object(at["div"])(n.salesNum, Object(at["add"])(n.salesNum, n.stock), {
                                fixed: 4
                            }), n.saleRate = Object(at["mul"])(n.saleRate, 100, {
                                fixed: 0
                            }), n.tag) {
                                var c = e.data.tagMedias.find(function(e) {
                                    return e.tagName === n.tag;
                                });
                                c && (n.tagImg = c.tagImg);
                            }
                            return n;
                        });
                        u(function(e) {
                            return e.concat(n);
                        });
                        var c = e.data.totalNum;
                        0 !== c ? 10 !== n.length ? g("end") : g("pull") : g("blank");
                    });
                }
            }, [ t, a ]), Object(j["useReachBottom"])(function() {
                "pull" === p && i(function(e) {
                    return e + 1;
                });
            }), Object(j["usePullDownRefresh"])(function() {
                setTimeout(j["stopPullDownRefresh"], 300), u([]), i(0), i(1);
            }), Object(N["jsxs"])(N["Fragment"], {
                children: [ o.map(function(e) {
                    return Object(N["jsx"])(lt, {
                        goods: e
                    }, e.tuanGoodsId);
                }), Object(N["jsx"])(dt["a"], {
                    type: p
                }) ]
            });
        }, jt = function() {
            Object(j["navigateTo"])({
                url: "/pages/tuan_search/index"
            });
        }, gt = function(e) {
            var t = Object(b["c"])(), n = Object(m["useState"])(0), c = Object(E["a"])(n, 2), a = c[0], i = c[1], s = Object(m["useState"])([]), r = Object(E["a"])(s, 2), o = r[0], u = r[1], l = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), d = l.headImg, p = l.nickName, g = l.miniServiceType, f = Object(m["useCallback"])(function() {
                Xe["b"].fetchList().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if (0 !== e.code) return !1;
                    var t = e.data.tuanBannerList;
                    u(t);
                });
            }, []), O = Object(m["useCallback"])(function(e) {
                if (0 === e.bannerType) return !1;
                if (3 === e.bannerType) return !1;
                if (!e.bannerParam) return Object(j["showToast"])({
                    title: "参数异常",
                    icon: "none"
                }), !1;
                if (1 === e.bannerType) {
                    var n = e.bannerParam, c = {
                        tuanGoodsId: n
                    };
                    return Object(j["showLoading"])(), Xe["c"].fetchDetail(c).then(function(e) {
                        return e.data;
                    }).then(function(e) {
                        if (Object(j["hideLoading"])(), 0 !== e.code) return Object(j["showToast"])({
                            title: e.msg,
                            icon: "none"
                        }), !1;
                        var t = e.data.tuanGoods;
                        Object(qe["b"])(t);
                    }), !1;
                }
                if (2 === e.bannerType) {
                    var a = e.bannerParam;
                    return t(Ke(a)), Object(j["switchTab"])({
                        url: "/pages/main/group/index"
                    }), !1;
                }
            }, [ t ]), x = Object(m["useCallback"])(function(e) {
                if ("qbtp" !== e.key) "zzkt" !== e.key ? "ktyg" !== e.key || i(1) : i(0); else {
                    var t = "/pages/main/group/index";
                    Object(j["switchTab"])({
                        url: t
                    });
                }
            }, []);
            return Object(m["useEffect"])(function() {
                2 === g && f();
            }, [ f, g ]), Object(j["usePullDownRefresh"])(function() {
                2 === g && f();
            }), 2 !== g ? null : Object(N["jsxs"])(h["View"], {
                className: "miniServiceType-2",
                children: [ Object(N["jsx"])(U["a"], {
                    color: "#ffffff",
                    background: "linear-gradient(to top, #960586, #bd1090)",
                    renderLeft: Object(N["jsxs"])(h["View"], {
                        className: "nav-bar__left",
                        children: [ Object(N["jsx"])(h["Image"], {
                            src: d,
                            mode: "widthFix",
                            className: "logo"
                        }), Object(N["jsx"])(h["Text"], {
                            className: "nickname",
                            children: p
                        }) ]
                    })
                }), Object(N["jsxs"])(h["View"], {
                    className: "tuan-header",
                    children: [ Object(N["jsxs"])(h["View"], {
                        className: "first",
                        children: [ Object(N["jsx"])(We, {
                            onSearch: jt
                        }), Object(N["jsx"])(h["View"], {
                            className: "space-134"
                        }) ]
                    }), Object(N["jsx"])(h["View"], {
                        className: "second"
                    }), Object(N["jsx"])(h["Swiper"], {
                        circular: !0,
                        autoplay: !1,
                        className: "swiper",
                        indicatorDots: !0,
                        indicatorColor: "#ccc",
                        indicatorActiveColor: "#fff",
                        children: o.map(function(e) {
                            return Object(N["jsx"])(h["SwiperItem"], {
                                className: "item",
                                onClick: function() {
                                    return O(e);
                                },
                                children: Object(N["jsx"])(h["Image"], {
                                    className: "banner",
                                    src: e.imgUrl
                                })
                            }, e.bannerId);
                        })
                    }) ]
                }), Object(N["jsx"])(ct, {
                    onLogin: e.onLogin
                }), Object(N["jsx"])(Qe, {
                    activeIndex: a,
                    onItemClick: x
                }), 0 === a && Object(N["jsx"])(pt, {
                    coming: 0
                }), 1 === a && Object(N["jsx"])(pt, {
                    coming: 1
                }) ]
            });
        }, ht = gt, bt = function() {
            var e = Object(m["useRef"])({
                imageHref: "",
                shareTitle: ""
            }), t = Object(b["d"])(function(e) {
                return e.user.agent.agentId || e.share.agentId || "";
            }), n = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), c = n.miniServiceType, a = n.nickName;
            return Object(m["useEffect"])(function() {
                var t = {
                    shareType: 1
                };
                J["P"].fetchByMp(t).then(function(e) {
                    return e.data;
                }).then(function(t) {
                    t.share && (e.current = t.share);
                });
            }, []), Object(j["useShareAppMessage"])(function() {
                var n = "/pages/main/home/index?agentId=".concat(t), i = Object(w["a"])().miniProgram.appId;
                if ("wx54ef709ab84d2c5c" === i || "wxb04ccd673ed61967" === i) {
                    var s = "技术支持，点击联系>>", r = "http://cdn.meizhuan.cn/pic-go/meizhuan-support-share.jpg";
                    return {
                        title: s,
                        path: n,
                        imageUrl: r
                    };
                }
                var o = e.current, u = o.imageHref, l = o.shareTitle;
                if (u && l) return {
                    path: n,
                    title: l,
                    imageUrl: u
                };
                if ("wxe30b114abab546ad" === i) {
                    var d = "您有一个大额外卖红包待领取！", p = "http://cdn.meizhuan.cn/pic-go/weapp-share-wxe30b114abab546ad.jpg";
                    return {
                        title: d,
                        path: n,
                        imageUrl: p
                    };
                }
                if ([ 4, 5, 6 ].includes(c)) {
                    var j = "美团、饿了么，单单帮你省", g = "http://cdn.meizhuan.cn/pic-go/waimai-share-210427.jpg";
                    return {
                        title: j,
                        path: n,
                        imageUrl: g
                    };
                }
                if (2 === c) return {
                    title: a,
                    path: n,
                    imageUrl: ""
                };
                if (1 === c) {
                    var h = "购物先领券，省下一套房！";
                    return {
                        title: h,
                        path: n,
                        imageUrl: ""
                    };
                }
                return {
                    title: a,
                    path: n,
                    imageUrl: ""
                };
            }), null;
        }, mt = (n(455), function(e) {
            var t = Object(b["c"])(), n = Object(b["d"])(function(e) {
                return e.user;
            }), c = n.loginStatus, a = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), r = a.nickName, o = a.miniServiceType, u = function() {
                if (!c) return !1;
                J["G"].getSessionAgentInfo().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    return 0 != e.code ? (Object(j["showToast"])({
                        title: e.msg,
                        icon: "none"
                    }), !1) : e.agent ? (t(Object(W["a"])(e.agent)), void Object(j["showToast"])({
                        title: "初始化成功，请重新分享",
                        icon: "none"
                    })) : (Object(j["showToast"])({
                        title: "未获取到代理信息",
                        icon: "none"
                    }), !1);
                });
            }, l = function() {
                var e = Object(s["a"])(i.a.mark(function e() {
                    var t, n, c, a, s, r, o;
                    return i.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            return e.next = 2, Object(j["getUserProfile"])({
                                lang: "zh_CN",
                                desc: "获取用户信息"
                            });

                          case 2:
                            return t = e.sent, n = t.userInfo, e.next = 6, Object(j["login"])();

                          case 6:
                            return c = e.sent, a = c.code, s = {
                                code: a,
                                isNeedCreateAgent: 1,
                                encryptedData: JSON.stringify(n)
                            }, Object(j["showLoading"])({
                                title: "正在初始化",
                                mask: !0
                            }), e.next = 12, J["S"].saveXcxUserInfoNew(s).then(function(e) {
                                return e.data;
                            });

                          case 12:
                            if (r = e.sent, Object(j["hideLoading"])(), 1 == r.code || 2 == r.code) {
                                e.next = 18;
                                break;
                            }
                            return o = r.msg || "初始化失败", Object(j["showToast"])({
                                title: o,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 18:
                            Object(B["f"])(r), u();

                          case 20:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }));
                return function() {
                    return e.apply(this, arguments);
                };
            }();
            return 4 !== o ? null : Object(N["jsxs"])(h["View"], {
                className: "miniServiceType-4",
                children: [ Object(N["jsx"])(U["a"], {
                    color: "#ffffff",
                    title: r,
                    background: F["b"]
                }), Object(N["jsx"])(ge, {
                    onLogin: e.onLogin
                }), Object(N["jsx"])(ue, {
                    onLogin: e.onLogin,
                    onAddTip: e.onAddTip,
                    onGetUserProfile: l
                }), Object(N["jsx"])(xe, {}), Object(N["jsx"])(G["a"], {}), Object(N["jsx"])(Oe, {}), Object(N["jsx"])(Ae, {}), Object(N["jsx"])(V["a"], {
                    fallback: Object(N["jsx"])(Ce["a"], {}),
                    children: Object(N["jsx"])(q["a"], {})
                }) ]
            });
        }), ft = mt, Ot = (n(456), function(e) {
            var t = Object(b["c"])(), n = Object(b["d"])(function(e) {
                return e.user;
            }), c = n.loginStatus, a = Object(b["d"])(function(e) {
                return e.weapp.mp;
            }), r = a.nickName, o = a.miniServiceType, u = function() {
                if (!c) return !1;
                J["G"].getSessionAgentInfo().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    return 0 != e.code ? (Object(j["showToast"])({
                        title: e.msg,
                        icon: "none"
                    }), !1) : e.agent ? (t(Object(W["a"])(e.agent)), void Object(j["showToast"])({
                        title: "初始化成功，请重新分享",
                        icon: "none"
                    })) : (Object(j["showToast"])({
                        title: "未获取到代理信息",
                        icon: "none"
                    }), !1);
                });
            }, l = function() {
                var e = Object(s["a"])(i.a.mark(function e() {
                    var t, n, c, a, s, r, o;
                    return i.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            return e.next = 2, Object(j["getUserProfile"])({
                                lang: "zh_CN",
                                desc: "获取用户信息"
                            });

                          case 2:
                            return t = e.sent, n = t.userInfo, e.next = 6, Object(j["login"])();

                          case 6:
                            return c = e.sent, a = c.code, s = {
                                code: a,
                                isNeedCreateAgent: 1,
                                encryptedData: JSON.stringify(n)
                            }, Object(j["showLoading"])({
                                title: "正在初始化",
                                mask: !0
                            }), e.next = 12, J["S"].saveXcxUserInfoNew(s).then(function(e) {
                                return e.data;
                            });

                          case 12:
                            if (r = e.sent, Object(j["hideLoading"])(), 1 == r.code || 2 == r.code) {
                                e.next = 18;
                                break;
                            }
                            return o = r.msg || "初始化失败", Object(j["showToast"])({
                                title: o,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 18:
                            Object(B["f"])(r), u();

                          case 20:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }));
                return function() {
                    return e.apply(this, arguments);
                };
            }();
            return 5 !== o ? null : Object(N["jsxs"])(h["View"], {
                className: "miniServiceType-5",
                children: [ Object(N["jsx"])(U["a"], {
                    color: "#ffffff",
                    title: r,
                    background: F["b"]
                }), Object(N["jsx"])(ge, {
                    onLogin: e.onLogin
                }), Object(N["jsx"])(ue, {
                    onLogin: e.onLogin,
                    onAddTip: e.onAddTip,
                    onGetUserProfile: l
                }), Object(N["jsx"])(xe, {}), Object(N["jsx"])(G["a"], {}), Object(N["jsx"])(Oe, {}), Object(N["jsx"])(Ae, {}), Object(N["jsx"])(Ce["a"], {}) ]
            });
        }), xt = Ot, wt = (n(457), function(e) {
            var t = Object(m["useState"])(!1), n = Object(E["a"])(t, 2), c = n[0], a = n[1], i = Object(b["d"])(function(e) {
                return e.user.agent;
            }), s = i.agentId, r = Object(b["d"])(function(e) {
                return e.user;
            }), o = r.loginStatus, u = function() {
                var e = [ "wx54ef709ab84d2c5c", "wxb04ccd673ed61967" ], t = Object(w["a"])(), n = t.miniProgram;
                e.includes(n.appId) && a(!0);
            };
            return Object(j["useDidShow"])(u), Object(m["useEffect"])(u, []), c ? Object(N["jsx"])(h["View"], {
                className: "technical-support",
                children: Object(N["jsxs"])(h["View"], {
                    className: "wrap",
                    children: [ Object(N["jsxs"])(h["View"], {
                        className: "head",
                        children: [ Object(N["jsx"])(h["View"], {
                            className: "icon",
                            children: Object(N["jsx"])(h["Image"], {
                                className: "img",
                                src: "http://cdn.meizhuan.cn/pic-go/contact-20210929.png"
                            })
                        }), Object(N["jsx"])(h["View"], {
                            className: "close",
                            onClick: function() {
                                return a(!1);
                            },
                            children: Object(N["jsx"])(h["Image"], {
                                className: "icon",
                                src: "http://cdn.meizhuan.cn/pic-go/close-210617.png"
                            })
                        }) ]
                    }), Object(N["jsxs"])(h["View"], {
                        className: "body",
                        children: [ Object(N["jsxs"])(h["View"], {
                            className: "content",
                            children: [ Object(N["jsx"])(h["Text"], {
                                className: "txt",
                                children: "点击按钮联系技术支持"
                            }), Object(N["jsxs"])(h["View"], {
                                className: "tips",
                                children: [ Object(N["jsx"])(h["View"], {
                                    className: "item",
                                    children: "在线时间：09:00 -- 11:30"
                                }), Object(N["jsx"])(h["View"], {
                                    className: "item",
                                    children: "下午晚上：13:00 -- 22:00"
                                }) ]
                            }) ]
                        }), Object(N["jsx"])(h["View"], {
                            className: "button-wrap",
                            children: o && s ? Object(N["jsxs"])(h["View"], {
                                className: "button",
                                children: [ Object(N["jsx"])(h["Text"], {
                                    children: "联系技术支持"
                                }), Object(N["jsx"])(h["Button"], {
                                    className: "hover",
                                    openType: "contact"
                                }) ]
                            }) : Object(N["jsx"])(h["View"], {
                                className: "button",
                                onClick: e.onLogin,
                                children: Object(N["jsx"])(h["Text"], {
                                    children: "联系技术支持"
                                })
                            })
                        }) ]
                    }) ]
                })
            }) : null;
        }), Nt = function(e) {
            var t = e.user, n = e.share;
            return {
                user: t,
                share: n
            };
        }, Tt = function() {
            return {};
        }, vt = (ot = Object(b["b"])(Nt, Tt), ot(ut = function(e) {
            Object(l["a"])(n, e);
            var t = Object(d["a"])(n);
            function n(e) {
                var c;
                return Object(r["a"])(this, n), c = t.call(this, e), Object(p["a"])(Object(u["a"])(c), "refresh", Object(s["a"])(i.a.mark(function e() {
                    var t;
                    return i.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            if (t = c.props.user.currentWeappMp.mpType, t) {
                                e.next = 3;
                                break;
                            }
                            return e.abrupt("return", !1);

                          case 3:
                            c.openContactDialog(), c.pageNum = 1, setTimeout(g.a.stopPullDownRefresh, 300);

                          case 6:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))), Object(p["a"])(Object(u["a"])(c), "parseParams", Object(s["a"])(i.a.mark(function e() {
                    var t, n, a;
                    return i.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            t = g.a.getCurrentInstance().router.params, n = P["d"].LAUNCH_PARAMS, g.a.setStorageSync(n, t), 
                            t.scene && (a = P["d"].LAUNCH_SCENE, g.a.setStorageSync(a, t.scene)), c.openContactDialog();

                          case 5:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))), Object(p["a"])(Object(u["a"])(c), "openContactDialog", function() {
                    if (c.props.user.loginStatus) {
                        var e = g.a.getStorageSync(P["d"].LAUNCH_SCENE);
                        e && 0 === e.indexOf("CS_") && c.setState({
                            showContactDialog: !0
                        });
                    }
                }), Object(p["a"])(Object(u["a"])(c), "closeContactDialog", function() {
                    c.setState({
                        showContactDialog: !1
                    }, function() {
                        g.a.removeStorageSync(P["d"].LAUNCH_SCENE);
                    });
                }), Object(p["a"])(Object(u["a"])(c), "closeLogin", function() {
                    c.setState({
                        showLogin: !1
                    });
                }), Object(p["a"])(Object(u["a"])(c), "openLogin", function() {
                    c.setState({
                        showLogin: !0
                    });
                }), Object(p["a"])(Object(u["a"])(c), "openAddTip", function() {
                    c.setState({
                        showAddTip: !0
                    });
                }), Object(p["a"])(Object(u["a"])(c), "closeAddTip", function() {
                    c.setState({
                        showAddTip: !1
                    });
                }), Object(p["a"])(Object(u["a"])(c), "takeoutLogin", function() {
                    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0;
                    c.setState({
                        isNeedCreateAgent: e
                    }, c.openLogin);
                }), Object(p["a"])(Object(u["a"])(c), "openSupportLogin", function() {
                    c.setState({
                        isNeedCreateAgent: 1
                    }, c.openLogin);
                }), c.state = {
                    showLogin: !1,
                    showContactDialog: !1,
                    showAddTip: !1,
                    isNeedCreateAgent: 0
                }, c.floorPriceMin = 3, c.commissionRatioMin = 50, c.ddPidId = "", c.pageNum = 1, 
                c.coming = 0, c.serviceDomain = "", c.rebateNavBarRef = null, c.sortFilter = null, 
                c.duration = 18e5, c;
            }
            return Object(o["a"])(n, [ {
                key: "componentDidMount",
                value: function() {
                    this.parseParams(), this.refresh();
                }
            }, {
                key: "shouldComponentUpdate",
                value: function(e) {
                    return (!this.props.user.loginStatus && e.user.loginStatus || this.props.user.currentWeappMp.mpId !== e.user.currentWeappMp.mpId || this.props.user.currentWeappMp.miniServiceType !== e.user.currentWeappMp.miniServiceType) && setTimeout(this.refresh, 100), 
                    !0;
                }
            }, {
                key: "onPullDownRefresh",
                value: function() {
                    this.refresh();
                }
            }, {
                key: "render",
                value: function() {
                    var e = this.props.user.currentWeappMp.mpId, t = this.state, n = t.showAddTip, c = t.showLogin, a = t.isNeedCreateAgent, i = t.showContactDialog;
                    return e ? Object(N["jsxs"])(h["View"], {
                        className: "home",
                        children: [ Object(N["jsx"])(ye, {
                            onAddTip: this.openAddTip,
                            onLogin: this.openLogin
                        }), Object(N["jsx"])(ht, {
                            onLogin: this.openLogin
                        }), Object(N["jsx"])(ft, {
                            onAddTip: this.openAddTip,
                            onLogin: this.takeoutLogin
                        }), Object(N["jsx"])(xt, {
                            onAddTip: this.openAddTip,
                            onLogin: this.takeoutLogin
                        }), Object(N["jsx"])(Ee, {
                            onAddTip: this.openAddTip,
                            onLogin: this.takeoutLogin
                        }), Object(N["jsx"])(I["a"], {
                            enableClose: !0,
                            show: c,
                            onCloseLogin: this.closeLogin,
                            isNeedCreateAgent: a
                        }), Object(N["jsx"])(f["a"], {}), Object(N["jsx"])(C["a"], {
                            show: i,
                            onClose: this.closeContactDialog
                        }), Object(N["jsx"])(S, {
                            custom: !0,
                            show: n,
                            onClose: this.closeAddTip
                        }), Object(N["jsx"])(V["a"], {
                            children: Object(N["jsx"])(wt, {
                                onLogin: this.openSupportLogin
                            })
                        }), Object(N["jsx"])(H, {}), Object(N["jsx"])(bt, {}), Object(N["jsx"])(A["a"], {
                            activeKey: "home"
                        }) ]
                    }) : Object(N["jsx"])(y["a"], {
                        show: !0
                    });
                }
            } ]), n;
        }(m["Component"])) || ut), kt = vt, St = {
            navigationStyle: "custom",
            enableShareAppMessage: !0,
            navigationBarTitleText: "",
            navigationBarBackgroundColor: "#81007f"
        };
        kt.enableShareAppMessage = !0;
        Page(Object(c["createPageConfig"])(kt, "pages/main/home/index", {
            root: {
                cn: []
            }
        }, St || {}));
    }
}, [ [ 683, 0, 1, 2, 3 ] ] ]);